APUE Learning Example Source Code
guowenxue
2020-06-07 8a383b8715fc07145fdc3f3e3dbe6ecd93f72989
prj1_tlv/lylib/proc.c
@@ -304,7 +304,7 @@
 * *****************************************************************************/
int set_daemon_running(const char *pid_file)
    daemonize(0, 1);
    daemonize(1, 1);
    log_nrml("Program running as daemon [PID:%d].\n", getpid()); 
    
    if (record_daemon_pid(pid_file) < 0)