runtime: log pid lifecycle at info level
Some checks failed
build / Linux asan (push) Has been cancelled
build / Linux release (push) Has been cancelled
build / FreeBSD build (push) Has been cancelled

This commit is contained in:
server
2026-04-14 16:39:25 +02:00
parent 6d24172c51
commit 646e40eaf8

View File

@@ -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
}