http://git.community.i2p/PurpleI2P/i2pd/src/commit/02c51b098010573c680be91109a82e6d409854e0/DaemonLinux.cpp
" ) ; return false ; } char pid [ 10 ] ; sprintf ( pid , " %d \n " , getpid ( ) ) ; write ( pidFilehandle , pid , strlen ( pid ) ) ; // Signal handler struct sigaction sa ; sa . sa_handler = handle_signal ; sigemptyset ( & sa . sa_mask ) ; sa . sa_flags = SA_RESTART ; sigaction ( SIGHUP , & sa , 0 ) ; sigaction ( SIGABRT , & sa , 0 ) ; sigaction ( SIGTERM , & sa , 0 ) ; sigaction ( SIGINT...