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

Guy Helmer ghelmer at
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 
  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>.
  This has been in -current for 8 months with no reports of adverse
  PR:             bin/25462
  Prompted-by:    dada at
  Revision  Changes    Path   +21 -2     src/lib/libc/gen/daemon.c

More information about the cvs-src mailing list