[PATCH] Add pid-file support

David Woodhouse dwmw2 at infradead.org
Wed Aug 10 05:48:51 EDT 2011


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




More information about the openconnect-devel mailing list