Logging agent: fix a potential memory corruption problem and install signal handlers that allow us to exit in a safer manner.
Logging agent: fix a potential memory corruption problem and install signal handlers that allow us to exit in a safer manner.

pkmiec/passenger,openSUSE/passenger,jawj/passenger,fabiokung/passenger-debian,jawj/passenger,cgvarela/passenger,jawj/passenger,fabiokung/passenger-debian,clemensg/passenger,pkmiec/passenger,pkmiec/passenger,phusion/passenger,pkmiec/passenger,gravitystorm/passenger,jawj/passenger,clemensg/passenger,antek-drzewiecki/passenger,bf4/passenger,kewaunited/passenger,kewaunited/passenger,cgvarela/passenger,pkmiec/passenger,erikogan/passenger,erikogan/passenger,jawj/passenger,erikogan/passenger,antek-drzewiecki/passenger,jawj/passenger,openSUSE/passenger,antek-drzewiecki/passenger,gravitystorm/passenger,openSUSE/passenger,kewaunited/passenger,cgvarela/passenger,kewaunited/passenger,jawj/passenger,bf4/passenger,cgvarela/passenger,antek-drzewiecki/passenger,cgvarela/passenger,antek-drzewiecki/passenger,cgvarela/passenger,phusion/passenger,bf4/passenger,clemensg/passenger,fabiokung/passenger-debian,openSUSE/passenger,bf4/passenger,erikogan/passenger,fabiokung/passenger-debian,kewaunited/passenger,gravitystorm/passenger,clemensg/passenger,bf4/passenger,pkmiec/passenger,bf4/passenger,antek-drzewiecki/passenger,openSUSE/passenger,antek-drzewiecki/passenger,gravitystorm/passenger,bf4/passenger,clemensg/passenger,phusion/passenger,antek-drzewiecki/passenger,gravitystorm/passenger,erikogan/passenger,clemensg/passenger,phusion/passenger,phusion/passenger,cgvarela/passenger,fabiokung/passenger-debian,clemensg/passenger,cgvarela/passenger,openSUSE/passenger,phusion/passenger,kewaunited/passenger,gravitystorm/passenger,phusion/passenger,clemensg/passenger,erikogan/passenger,pkmiec/passenger,kewaunited/passenger,kewaunited/passenger,fabiokung/passenger-debian,phusion/passenger