LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File dhcp-4.2.2-dhclient-log-pid.diff of Package dhcp.219 (Project openSUSE:12.1:Update)

From 1f30e4707e13cb09315cbda2cf36bae099285a79 Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski <mt@suse.de>
Date: Thu, 5 Jan 2012 16:25:18 +0100
Subject: [PATCH] Use pid number in dhclient log messages

Troubleshooting help to make it visible which client is reporting
as there may be more than one running (v4 + v6 multiple interfaces).

Signed-off-by: Marius Tomaschewski <mt@suse.de>
---
 client/dhclient.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/dhclient.c b/client/dhclient.c
index ff5ede5..bee8e1d 100644
--- a/client/dhclient.c
+++ b/client/dhclient.c
@@ -141,7 +141,7 @@ main(int argc, char **argv) {
 	else if (fd != -1)
 		close(fd);
 
-	openlog("dhclient", LOG_NDELAY, LOG_DAEMON);
+	openlog("dhclient", LOG_NDELAY | LOG_PID, LOG_DAEMON);
 
 #if !(defined(DEBUG) || defined(__CYGWIN32__))
 	setlogmask(LOG_UPTO(LOG_INFO));
-- 
1.7.7