]> git.ozlabs.org Git - ppp.git/commitdiff
Fix problem with fd 0 getting closed unintentionally by closelog.
authorPaul Mackerras <paulus@samba.org>
Tue, 19 Dec 2006 07:48:19 +0000 (07:48 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 19 Dec 2006 07:48:19 +0000 (07:48 +0000)
Patch from Alan Curry in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=298582.

Basically, openlog was getting fd 0 for the log in some circumstances,
and safe_fork() was doing closelog after getting the desired stdin
dup'd to fd 0.  This fixes it by doing the closelog a little earlier.


No differences found