diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-08-21 10:01:03 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-08-21 10:01:03 +0800 |
commit | d62a6dd804cabfe12c37365bcd2007a232cdc775 (patch) | |
tree | 4aefba6a77e33cff824416b330decd6d1b94f0c5 /include | |
parent | 4f1d0b00cd97daf64d7646b04c4963fcbaba6b6c (diff) | |
download | pttbbs-d62a6dd804cabfe12c37365bcd2007a232cdc775.tar pttbbs-d62a6dd804cabfe12c37365bcd2007a232cdc775.tar.gz pttbbs-d62a6dd804cabfe12c37365bcd2007a232cdc775.tar.bz2 pttbbs-d62a6dd804cabfe12c37365bcd2007a232cdc775.tar.lz pttbbs-d62a6dd804cabfe12c37365bcd2007a232cdc775.tar.xz pttbbs-d62a6dd804cabfe12c37365bcd2007a232cdc775.tar.zst pttbbs-d62a6dd804cabfe12c37365bcd2007a232cdc775.zip |
Common daemonize function
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4399 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/cmsys.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cmsys.h b/include/cmsys.h index 572ce2a8..05454274 100644 --- a/include/cmsys.h +++ b/include/cmsys.h @@ -43,6 +43,9 @@ typedef time_t time4_t; /* crypt.c */ char *fcrypt(const char *key, const char *salt); +/* daemon.c */ +extern int daemonize(const char * pidfile, const char * logfile); + /* file.c */ extern off_t dashs(const char *fname); extern time4_t dasht(const char *fname); |