]> git.ozlabs.org Git - ppp.git/commit
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)
commitcd8692c099106d7acad6fd0215a899dae866792a
treea0ad8f2f6f456deb4f4a1cf48973902dad285e62
parent4f7e19816b21500f2e499df26551fbdd158c76a0
Fix problem with fd 0 getting closed unintentionally by closelog.

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.
pppd/main.c