diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-02 23:30:16 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-03 10:30:03 +0100 |
commit | 155f63c4f6995acff2b9c7467cfd91d1f77f3272 (patch) | |
tree | 28e8239e13b50ad3d07b1e777f919ac5297bf6bf /src/common | |
parent | bb1a5fc74769301c0a792cb83d3fa0bda8a780cb (diff) | |
download | kogata-155f63c4f6995acff2b9c7467cfd91d1f77f3272.tar.gz kogata-155f63c4f6995acff2b9c7467cfd91d1f77f3272.zip |
Implement process termination and cleaning up (not completely though)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/include/proc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/include/proc.h b/src/common/include/proc.h index 01a6722..af50001 100644 --- a/src/common/include/proc.h +++ b/src/common/include/proc.h @@ -5,10 +5,15 @@ #define PS_LOADING 1 #define PS_RUNNING 2 -#define PS_DONE 3 +#define PS_FINISHED 3 #define PS_FAILURE 4 // exception or segfault or stuff #define PS_KILLED 5 +#define FAIL_EXCEPTION 1 // unhandled processor exception +#define FAIL_ZEROPTR 2 // segfault at < 4k +#define FAIL_SEGFAULT 3 +#define FAIL_SC_SEGFAULT 4 // failed to validate parameter for system call + typedef struct { int pid; int state; // one of PS_* |