Changeset 92 for trunk/src/sh_unix.c


Ignore:
Timestamp:
Feb 18, 2007, 5:23:32 PM (18 years ago)
Author:
rainer
Message:

Move fd closing more towards program start. Fix OpenBSD 4.0 compatibility for kernel check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_unix.c

    r89 r92  
    18491849  if (goDaemon == 1)
    18501850    {
    1851       /* close all file descriptors
     1851      /* Close first tree file descriptors
    18521852       */
    1853       sh_unix_closeall (0, -1);  /* if running as daemon */
     1853      close (0);  /* if running as daemon */
     1854      close (1);  /* if running as daemon */
     1855      close (2);  /* if running as daemon */
    18541856
    18551857      /* Enable full error logging
     
    19131915  else
    19141916    {
    1915       sh_unix_closeall(3, -1);  /* if not daemon */
    19161917      sh_error_enable_unsafe (S_TRUE);
    19171918#if defined(HAVE_LIBPRELUDE)
Note: See TracChangeset for help on using the changeset viewer.