add daemonizing function; modify test of copy running

This commit is contained in:
2026-03-31 11:51:41 +03:00
parent 3b6d262583
commit a2b7977866
4 changed files with 143 additions and 32 deletions

View File

@@ -329,6 +329,8 @@ void WEAK sl_iffound_deflt(pid_t pid);
void sl_check4running(char *selfname, char *pidfilename);
// read name of process by its PID
char *sl_getPSname(pid_t pid);
// daemonize: reopen stdin/out/err as /dev/null, chdir to /, umask(0)
int sl_daemonize(); // return -1 if failed, 0 on OK
/******************************************************************************\
The original fifo_lifo.h