plan to cleanup the fd generation code
[trinity.git] / include / exit.h
blob566cd5a3e89873fdea29e42ecc404bcc84029355
1 #pragma once
3 extern unsigned char exit_reason;
5 enum exit_reasons {
6 STILL_RUNNING = 0,
7 EXIT_NO_SYSCALLS_ENABLED = 1,
8 EXIT_REACHED_COUNT = 2,
9 EXIT_NO_FDS = 3,
10 EXIT_LOST_PID_SLOT = 4,
11 EXIT_PID_OUT_OF_RANGE = 5,
12 EXIT_SIGINT = 6,
13 EXIT_KERNEL_TAINTED = 7,
14 EXIT_SHM_CORRUPTION = 8,
15 EXIT_REPARENT_PROBLEM = 9,
16 EXIT_NO_FILES = 10,
17 EXIT_MAIN_DISAPPEARED = 11,
18 EXIT_UID_CHANGED = 12,
19 EXIT_FD_INIT_FAILURE = 13,
20 EXIT_FORK_FAILURE = 14,
22 NUM_EXIT_REASONS = 15