Google
  Web www.spinics.net

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

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


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@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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]

Powered by Linux