cvs commit: src/lib/libc/gen daemon.c

Guy Helmer ghelmer at FreeBSD.org
Wed Jul 21 06:53:14 PDT 2004


ghelmer     2004-07-21 13:53:14 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_4)
    lib/libc/gen         daemon.c 
  Log:
  MFC: daemon.c 1.6 daemon.3 1.13-1.14
  
  Prevent abnormal termination of a child daemon process when created
  by a parent that is a session leader (e.g., login shell) by ignoring
  SIGHUP before calling fork(2) and then restoring SIGHUP's action
  after setsid(3).  Based on the patch by Martin Kammerhofer
  <mkamm at gmx.net>.
  This has been in -current for 8 months with no reports of adverse
  affects.
  
  PR:             bin/25462
  Prompted-by:    dada at sbox.tugraz.at
  
  Revision  Changes    Path
  1.3.2.1   +21 -2     src/lib/libc/gen/daemon.c


More information about the cvs-all mailing list