procd: show process's exit code
[project/procd.git] / service / instance.h
index e53c6069a3ab434915ca9eecb2e2eed7c106749c..7d91b51a34082a04d0d59afb0c615a780ea707f4 100644 (file)
@@ -21,6 +21,7 @@
 #include "../utils/utils.h"
 
 #define RESPAWN_ERROR  (5 * 60)
+#define SIGNALLED_OFFSET 128
 
 struct jail {
        bool procfs;
@@ -63,6 +64,7 @@ struct service_instance {
        char *seccomp;
        char *pidfile;
        int syslog_facility;
+       int exit_code;
 
        uint32_t term_timeout;
        uint32_t respawn_timeout;