From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJShB-0001nJ-LJ for qemu-devel@nongnu.org; Wed, 03 Oct 2012 13:25:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJSh5-0006GW-V2 for qemu-devel@nongnu.org; Wed, 03 Oct 2012 13:25:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJSh5-0006Fz-Ng for qemu-devel@nongnu.org; Wed, 03 Oct 2012 13:25:11 -0400 Date: Wed, 3 Oct 2012 14:25:41 -0300 From: Luiz Capitulino Message-ID: <20121003142541.1d5b998d@doriath.home> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] qemu-ga: ga_open_pidfile(): add new line to pidfile List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mdroth@linux.vnet.ibm.com Cc: qemu-devel FHS dictates that pid files should end with a new line. Signed-off-by: Luiz Capitulino --- qemu-ga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-ga.c b/qemu-ga.c index b747470..afd685e 100644 --- a/qemu-ga.c +++ b/qemu-ga.c @@ -255,7 +255,7 @@ static bool ga_open_pidfile(const char *pidfile) g_critical("Failed to truncate pid file"); goto fail; } - sprintf(pidstr, "%d", getpid()); + sprintf(pidstr, "%d\n", getpid()); if (write(pidfd, pidstr, strlen(pidstr)) != strlen(pidstr)) { g_critical("Failed to write pid file"); goto fail; -- 1.7.12.315.g682ce8b