Changeset 745 for trunk/server/lib/util/become_daemon.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/lib/util/become_daemon.c
r456 r745 67 67 ****************************************************************************/ 68 68 69 _PUBLIC_ void become_daemon(bool do_fork, bool no_process_group )69 _PUBLIC_ void become_daemon(bool do_fork, bool no_process_group, bool log_stdout) 70 70 { 71 71 #ifdef __OS2__ … … 92 92 #endif /* HAVE_SETSID */ 93 93 94 /* Close fd's 0,1,2. Needed if started by rsh */ 95 close_low_fds(false); /* Don't close stderr, let the debug system 96 attach it to the logfile */ 94 if (!log_stdout) { 95 /* Close fd's 0,1,2. Needed if started by rsh */ 96 close_low_fds(false); /* Don't close stderr, let the debug system 97 attach it to the logfile */ 98 } 97 99 }
Note:
See TracChangeset
for help on using the changeset viewer.