|
|
|
Re: [PATCH 04/20] uuidd: implement --no-pid option | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Tue, Apr 03, 2012 at 02:51:46PM +0200, Karel Zak wrote:
> On Thu, Mar 29, 2012 at 06:45:12PM +0200, Petr Uzel wrote:
> > + if (pidfile_path) {
> > + sprintf(reply_buf, "%8d\n", getpid());
> > + if (ftruncate(fd_pidfile, 0)) {
> > + /* Silence warn_unused_result */
> > + }
>
> #include "c.h"
>
> ignore_result( ftruncate(fd_pidfile, 0) );
I'll change this in v2. Thanks
Petr
--
Petr Uzel
IRC: ptr_uzl @ freenode
Attachment:
pgpqQNULzP76U.pgp
Description: PGP signature
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]