X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fmainloop.h;h=ffbf4e4d299096fa04889bf05ec1dcc21276cdfd;hb=c356224de3a2adf464369492c981503241661272;hp=67a7fcd88d78cfc930ea55b9a20cc2dd34f112c9;hpb=145922abfddde52698aa151c720d67c8adfb2c9d;p=libucw.git diff --git a/lib/mainloop.h b/lib/mainloop.h index 67a7fcd8..ffbf4e4d 100644 --- a/lib/mainloop.h +++ b/lib/mainloop.h @@ -74,9 +74,9 @@ void hook_del(struct main_hook *ho); struct main_process { cnode n; - int pid; - int status; /* Exit status */ - byte status_msg[32]; + int pid; /* Process id (0=not running) */ + int status; /* Exit status (-1=fork failed) */ + byte status_msg[EXIT_STATUS_MSG_SIZE]; void (*handler)(struct main_process *mp); /* [*] Called when the process exits; process_del done automatically */ void *data; /* [*] For use by the handler */ };