From 37424a09529d883cf788c7d52daae73d094803ed Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Fri, 10 Nov 2017 09:30:51 +0100 Subject: [PATCH] src: added child serial no to data struct Signed-off-by: Janos SUTO --- src/piler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/piler.c b/src/piler.c index 17382746..49b8e2a6 100644 --- a/src/piler.c +++ b/src/piler.c @@ -247,6 +247,8 @@ void child_main(struct child *ptr){ if(cfg.verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "child (pid: %d, serial: %d) started main() working on '%s'", getpid(), ptr->serial, dir); + data.child_serial = ptr->serial; + while(1){ if(received_sighup == 1){ if(cfg.verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "child (pid: %d) caught HUP signal", getpid());