2005-03-10 14:49:36

by Denis Vlasenko

[permalink] [raw]
Subject: [PATCH] enable stderr logging for mountd

I run my daemons under daemontools.
In this setup, they are best run as foreground processes
with logging to stout or stderr. mountd has some support
for this, but it is commented out. Let's enable it.

Patch also fixes handling of failure to open("/dev/null").

A few comments:
* We need xlog_background() BEFORE xlog_open(), or else
log won't be directed to stderr.
* no need to add "mountd:", it is added by xlog() itself.

Please apply.
--
vda


Attachments:
(No filename) (450.00 B)
nfs-utils-1.0.7.mountd.c-2.diff (946.00 B)
Download all attachments