runtime: log pid lifecycle at info level
This commit is contained in:
@@ -18,12 +18,12 @@ static int pid_init(void)
|
||||
{
|
||||
fprintf(fp, "%d", getpid());
|
||||
fclose(fp);
|
||||
sys_err("\nStart of pid: %d\n", getpid());
|
||||
sys_log(0, "Start of pid: %d", getpid());
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("pid_init(): could not open file for writing. (filename: ./pid)");
|
||||
sys_err("\nError writing pid file\n");
|
||||
sys_err("Error writing pid file");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -36,7 +36,7 @@ static void pid_deinit(void)
|
||||
return;
|
||||
#else
|
||||
remove("./pid");
|
||||
sys_err("\nEnd of pid\n");
|
||||
sys_log(0, "End of pid");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user