Subject: Re: CVS commit: src/usr.sbin/rtsold
To: None <perry@piermont.com>
From: Jun-ichiro itojun Hagino <itojun@itojun.org>
List: source-changes
Date: 01/04/2004 04:23:30
> > > Also, pidfile handles cleanup automatically.
> > atexit() in NetBSD can be very unsafe at this moment - see
> > http://www.openbsd.org/papers/pacsec03/e/index.html (page 12)
> > so i don't like it be used.
> Could we fix atexit and then add back the pidfile() functionality?
there's other reasons i dislike pidfiles. they are not properly
locked on creation, /var/run needs to be writable, no consideration
to multiple daemons, no consistency guarantee between actual process
table, and more. if anything, a script that searches and kills
"rtsold" would be much better. or, we could extend kill(1) to take
string as an argument and kill process under given name.
itojun