APUE Learning Example Source Code
guowenxue
2020-04-30 9d2a15e034348a38a569d4ff91047363f608ee79
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)