APUE Learning Example Source Code
guowenxue
2023-11-06 f63647218e192628aa8598d504e064529398f159
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)