On Tue, Nov 23, 1999 at 07:56:38PM +0100, Lowkrantz, Goran wrote:
There seems to be somthing wrong with the forking in the new version. It never goes deamon.
Here are the truss lists from 1.3.1 and 1.3.4 resp.
I'm currently downloading FreeBSD, so I can test this. Under Linux it works o.k.
Any ideas or pointers where to look?
syslog-ng goes to background the following way: parent: read configuration if config syntactically correct then fork(); wait for SIGTERM signal child: initialize configuration (open sockets etc.) if successful; close fds 0, 1, 2, become a session leader, send SIGTERM signal to parent You can find all of this in main.c -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt