mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 05:00:12 +01:00
src: added child serial no to data struct
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
1192fc3218
commit
37424a0952
@ -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);
|
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){
|
while(1){
|
||||||
if(received_sighup == 1){
|
if(received_sighup == 1){
|
||||||
if(cfg.verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "child (pid: %d) caught HUP signal", getpid());
|
if(cfg.verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "child (pid: %d) caught HUP signal", getpid());
|
||||||
|
Loading…
Reference in New Issue
Block a user