Re: pidfile_lock(3)

2016-04-01 Thread Roy Marples
On 20/03/2016 18:53, James K. Lowden wrote: > The biggest problem with pidfiles IMO is stale files left over when the > process terminates abnormally. That could be remedied with a separate > daemon, modelled on syslogd, that would create, update and delete > them. Modify pidfile(3) to use the da

Re: WSTOPPED in

2016-04-01 Thread David Holland
On Fri, Apr 01, 2016 at 10:12:09AM +0700, Robert Elz wrote: > Currently, (if XOPEN_SOURCE or NETBSD_SOURCE) > defines the symbol WSTOPPED as ... > [...] That all seems wrong, yes... > ./external/bsd/libproc/dist/proc_bkpt.c: > } else if (waitpid((proc_getpid(phdl), &status, WSTOPPED

Re: WSTOPPED in

2016-04-01 Thread Robert Elz
Date:Fri, 1 Apr 2016 16:06:24 + From:David Holland Message-ID: <20160401160624.ga20...@netbsd.org> | That will probably sorta-kinda work as intended because it contains | WUNTRACED, but it's definitely wrong. It also includes WNOHANG which might or might not