mirror of
https://github.com/eddyem/snippets_library.git
synced 2026-05-07 13:16:56 +03:00
add daemonizing function; modify test of copy running
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user