From: Paul Mackerras Date: Tue, 19 Dec 2006 07:48:19 +0000 (+0000) Subject: Fix problem with fd 0 getting closed unintentionally by closelog. X-Git-Tag: ppp-2.4.7~107 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=cd8692c099106d7acad6fd0215a899dae866792a;hp=cd8692c099106d7acad6fd0215a899dae866792a 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. ---