Parent Directory
|
Revision Log
|
Patch
| Revision 1.6 by sysadm, Fri Oct 22 15:20:32 2004 UTC | Revision 1.8 by sysadm, Sun Mar 20 14:37:37 2005 UTC | |
|---|---|---|
| # | 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 | ||
| 45 | for (i = 0; i < NOFILE; ++i) | // for (i = 0; i < NOFILE; ++i) |
| 46 | close (i); | // close (i); |
| 47 | chdir (app_home_dir); | chdir (app_home_dir); |
| 48 | umask (0); | umask (0); |
| 49 | ||
| # | Line 63 load_conf (const char *conf_file) | Line 63 load_conf (const char *conf_file) |
| 63 | ||
| 64 | if ((fin = fopen (conf_file, "r")) == NULL) | if ((fin = fopen (conf_file, "r")) == NULL) |
| 65 | { | { |
| 66 | log_error ("Open bbsd.conf failed"); | log_error ("Open %s failed", conf_file); |
| 67 | return -1; | return -1; |
| 68 | } | } |
| 69 |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |