runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

wait.h (258B)


      1 /* Public domain. */
      2 
      3 #ifndef WAIT_H
      4 #define WAIT_H
      5 
      6 extern int wait_pid( int* wstat, int pid );
      7 
      8 #define wait_crashed(w) ((w) & 127)
      9 #define wait_exitcode(w) ((w) >> 8)
     10 #define wait_stopsig(w) ((w) >> 8)
     11 #define wait_stopped(w) (((w) & 127) == 127)
     12 
     13 #endif