summaryrefslogtreecommitdiff
path: root/src/sysexec.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-09-17 17:15:55 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-09-17 17:15:55 +0200
commit5f594bfbcb2d2bd132fb6eb006fe9dccc7ee5344 (patch)
treef4948f9785093cfda04fb00c578028390f5e9509 /src/sysexec.h
parentmove children to own process group and kill the whole group (diff)
fixed race condition between killing processes
Diffstat (limited to 'src/sysexec.h')
-rw-r--r--src/sysexec.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysexec.h b/src/sysexec.h
index 560a70f..4345a15 100644
--- a/src/sysexec.h
+++ b/src/sysexec.h
@@ -25,11 +25,13 @@
#include <sys/types.h>
#include "options.h"
+typedef enum { NEW, RUNNING, KILLED } child_state_t;
+
struct child_list_element_struct {
pid_t pid_;
char* script_;
int err_fd_;
- int running_;
+ child_state_t state_;
char** argv_;
char** evp_;
struct child_list_element_struct* next_;