Header: process_hal.h
Overview
What a decoded status says about how the process left the CPU. A port sets the flags it can tell apart; a platform that only reports an exit code sets MRB_PROCESS_STATUS_EXITED alone.
Define Summary
- #define MRUBY_PROCESS_HAL_H
- #define MRB_PROCESS_WAIT_NOHANG
Wait options
These are the values
Process::WNOHANGandProcess::WUNTRACEDcarry, so they are mruby's own; a port translates them to whatever its platform spells them as. - #define MRB_PROCESS_WAIT_UNTRACED
- #define MRB_PROCESS_WAIT_FLAGS
Every bit a wait may carry. The common layer refuses anything else, so a port is handed only bits it knows and does not have to say what it would do with the others.
- #define MRB_PROCESS_WAIT_ANY
Wait for any child, whichever finishes first. Other non-positive pids keep their platform meaning (on POSIX, a process group selector); a port that cannot express them fails with ENOSYS.
- #define NSEC_PER_SEC