Parent Directory
|
Revision Log
|
Patch
| Revision 1.9 by sysadm, Sun Mar 20 17:37:14 2005 UTC | Revision 1.10 by sysadm, Sat May 7 12:08:28 2005 UTC | |
|---|---|---|
| # | Line 18 | Line 18 |
| 18 | #include "bbs.h" | #include "bbs.h" |
| 19 | #include "common.h" | #include "common.h" |
| 20 | #include "io.h" | #include "io.h" |
| #include <unistd.h> | ||
| 21 | #include <signal.h> | #include <signal.h> |
| 22 | #include <sys/param.h> | #include <sys/param.h> |
| 23 | #include <sys/types.h> | #include <sys/types.h> |
| 24 | #include <sys/stat.h> | #include <sys/stat.h> |
| 25 | #include <unistd.h> | |
| 26 | ||
| 27 | void | void |
| 28 | init_daemon (void) | init_daemon (void) |
| # | Line 42 init_daemon (void) | Line 42 init_daemon (void) |
| 42 | else if (pid < 0) | else if (pid < 0) |
| 43 | exit (1); | exit (1); |
| 44 | ||
| // for (i = 0; i < NOFILE; ++i) | ||
| // close (i); | ||
| chdir (app_home_dir); | ||
| 45 | umask (0); | umask (0); |
| 46 | ||
| signal (SIGCHLD, SIG_IGN); | ||
| 47 | return; | return; |
| 48 | } | } |
| 49 |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |