LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2022-04-14 b97b50d6ec47b5c239c468f9b799aa26f0f5be4b
booster/util_proc.c
@@ -209,7 +209,7 @@
    { 
        if (mkdir(ipc_dir, mode) < 0) 
        { 
            log_fatal("cannot create %s: %s\n", ipc_dir, strerror(errno));
            log_err("cannot create %s: %s\n", ipc_dir, strerror(errno));
            return -1; 
        } 
        
@@ -229,7 +229,7 @@
    } 
    else 
    {
        log_fatal("cannot create %s: %s\n", pid_file, strerror(errno));
        log_err("cannot create %s: %s\n", pid_file, strerror(errno));
        return -1;
    }
@@ -257,7 +257,7 @@
    } 
    else
    {
        log_fatal("Can't open PID record file %s: %s\n", pid_file, strerror(errno));
        log_err("Can't open PID record file %s: %s\n", pid_file, strerror(errno));
        return -1;
    } 
    return pid;
@@ -360,7 +360,7 @@
    
    if (record_daemon_pid(pid_file) < 0) 
    { 
        log_fatal("Record PID to file \"%s\" failure.\n", pid_file);
        log_err("Record PID to file \"%s\" failure.\n", pid_file);
        return -2;
    }