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

Karel Zak
2012-04-03T12:52:15Z

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) );

--
Karel Zak <kzak@redhat.com>