Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by sdf ( 14 years ago )
From 7ef244a40fa89216adafe9127e9df5ec9803a9d3 Mon Sep 17 00:00:00 2001
From: Leo Scherer <[email protected]>
Date: Mon, 5 Nov 2012 02:39:53 +0100
Subject: [PATCH] added pid to _log(..) in common.c
---
src/common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common.c b/src/common.c
index fd548bf..d4209bc 100644
--- a/src/common.c
+++ b/src/common.c
@@ -7,7 +7,7 @@
*
*/
#include "common.h"
-
+#include <unistd.h>
/** Handle log lines using format strings and loglevel.
*
@@ -39,7 +39,7 @@ void _log(short level, char *fmt, ...) {
vsnprintf(logbuf, bufsize, fmt, args);
va_end(args);
- printf("[%s]: %s\n", log_level(level), logbuf);
+ printf("[%s/pid:%d]: %s\n", log_level(level), getpid(), logbuf);
free((void*)logbuf);
return;
--
1.8.0
Revise this Paste