On Wed, 2011-08-10 at 10:47 +0100, David Woodhouse wrote: > On Fri, 2011-08-05 at 14:37 -0700, Steven Allen wrote: > > + fp = fopen(pidfile, "w"); > > I believe we should be using O_EXCL here. So open() not fopen(). Oh, and you should be *removing* the pidfile on exit too, shouldn't you? -- dwmw2