APUE course source code
guowenxue
13 hours ago 4ea61c1941ce77b3b919e9088c3291a04d20533a
project/4.mqttd/booster/proc.c
@@ -3,7 +3,7 @@
 *                  All rights reserved.
 *
 *       Filename:  proc.c
 *    Description:  This file is the process API
 *    Description:  This file is the process/thread API
 *
 *        Version:  1.0.0(7/06/2020)
 *         Author:  Guo Wenxue <guowenxue@gmail.com>
@@ -59,7 +59,6 @@
            break;
    }
}
/* install default signal process functions  */
void install_default_signal(void)
@@ -184,8 +183,6 @@
    return 0;
}
/* ****************************************************************************
 * FunctionName: record_daemon_pid
@@ -345,8 +342,6 @@
    return 0;
}
/* ****************************************************************************
 * FunctionName: set_daemon_running
 * Description : Set the programe running as daemon if it's not running and record
@@ -398,8 +393,6 @@
        goto CleanUp;
CleanUp:
    if( thread_id )
    {
        if( rv )
@@ -412,7 +405,6 @@
    pthread_attr_destroy(&thread_attr);
    return rv;
}
/* excute a linux command by system() */
void exec_system_cmd(const char *format, ...)
@@ -428,5 +420,3 @@
    system(cmd);
}