Guo Wenxue
2022-09-22 732d1963ed83abf4e5f1b06ec451a6943421d716
mqttd/lylib/proc.c
@@ -234,7 +234,7 @@
    if (0 == retVal) 
    { 
        pid_t pid = -1; 
        printf("PID record file \"%s\" exist.\n", pid_file);
        //printf("PID record file \"%s\" exist.\n", pid_file);
        pid = get_daemon_pid(pid_file);
        if (pid > 0)  /*  Process pid exist */
@@ -246,7 +246,7 @@
            } 
            else   /* Send signal to the old process get no reply. */ 
            { 
                printf("Program with PID[%d] seems exit.\n", pid);
                printf("Program with PID[%d] already exit.\n", pid);
                remove(pid_file); 
                return 0; 
            }