[PATCH] Add pid-file support

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

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux