Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.bugs.4bsd Subject: Re: Patches for lib/libc/syslog.c Message-ID: <8667@mimsy.UUCP> Date: Sun, 20-Sep-87 21:09:36 EDT Article-I.D.: mimsy.8667 Posted: Sun Sep 20 21:09:36 1987 Date-Received: Mon, 21-Sep-87 04:09:23 EDT References: <2942@psuvax1.psu.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 12 There is a problem with these patches. According to syslog(3), LOG_CONS `... is safe to use in daemon processes that have no controlling terminal since syslog will fork before opening the console'. This version of syslog() does not do that. My own solution is simply to allow syslog() with LOG_CONS to fail if the connect() fails and the program using syslog does a chdir(). This is not right either, but does not attach the program to the console. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris