Re: [PATCH 04/20] uuidd: implement --no-pid option

Petr Uzel
2012-04-05T07:36:36Z

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

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 #2: Type: application/pgp-signature, Size: 198 bytes --]