]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mainloop.h
Let bskip() return success.
[libucw.git] / lib / mainloop.h
index 67a7fcd88d78cfc930ea55b9a20cc2dd34f112c9..ffbf4e4d299096fa04889bf05ec1dcc21276cdfd 100644 (file)
@@ -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 */
 };