Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.sbin/rtsold



> >    > 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



Home | Main Index | Thread Index | Old Index