Re: syslogd in foreground

2015-06-12 Thread Todd C. Miller
On Fri, 12 Jun 2015 21:02:47 +0200, Alexander Bluhm wrote: > You are right. Then this is the correct diff. ok? OK millert@ - todd

Re: syslogd in foreground

2015-06-12 Thread Alexander Bluhm
On Fri, Jun 12, 2015 at 12:53:34PM -0600, Todd C. Miller wrote: > > I wanted both places were we close the lockpipe in a consistent > > order. Now I think we should compare the fd with 2 in both places > > to have the same level of paranoia as with nullfd a few lines below. > > It is safer to clo

Re: syslogd in foreground

2015-06-12 Thread Anthony J. Bentley
"Todd C. Miller" writes: > > @@ -85,6 +85,8 @@ and do not disassociate from the control > > Specify the pathname of an alternate configuration file; > > the default is > > .Pa /etc/syslog.conf . > > +.It Fl F > > +Do not daemonize and stay in foreground. > > Since "daemonize" is not a word, how

Re: syslogd in foreground

2015-06-12 Thread Todd C. Miller
On Fri, 12 Jun 2015 20:43:33 +0200, Alexander Bluhm wrote: > I wanted both places were we close the lockpipe in a consistent > order. Now I think we should compare the fd with 2 in both places > to have the same level of paranoia as with nullfd a few lines below. It is safer to close the lock fd

Re: syslogd in foreground

2015-06-12 Thread Alexander Bluhm
On Fri, Jun 12, 2015 at 10:30:18AM -0600, Todd C. Miller wrote: > > I need a syslogd running in foreground for a project. FreeBSD > > also uses the option -F for that. > > I don't have any objection to that. A few comments inline. Theo convinced me that this feature does not make sense for Open

Re: syslogd in foreground

2015-06-12 Thread Todd C. Miller
On Fri, 12 Jun 2015 01:07:57 +0200, Alexander Bluhm wrote: > I need a syslogd running in foreground for a project. FreeBSD > also uses the option -F for that. I don't have any objection to that. A few comments inline. - todd > Index: usr.sbin/syslogd/privsep.c > =

Re: syslogd in foreground

2015-06-12 Thread Sebastian Benoit
Alexander Bluhm(alexander.bl...@gmx.net) on 2015.06.12 01:07:57 +0200: > Hi, > > I need a syslogd running in foreground for a project. FreeBSD > also uses the option -F for that. > > Do we want this feature in OpenBSD? i dont see why not, and -d does obviously too much. -F is fine, nobody else

syslogd in foreground

2015-06-11 Thread Alexander Bluhm
Hi, I need a syslogd running in foreground for a project. FreeBSD also uses the option -F for that. Do we want this feature in OpenBSD? ok? bluhm Index: usr.sbin/syslogd/privsep.c === RCS file: /data/mirror/openbsd/cvs/src/usr.sbi