Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/lib/util/become_daemon.c

    r456 r745  
    6767****************************************************************************/
    6868
    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)
    7070{
    7171#ifdef __OS2__
     
    9292#endif /* HAVE_SETSID */
    9393
    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        }
    9799}
Note: See TracChangeset for help on using the changeset viewer.