Handle child process exit codes

This commit is contained in:
2020-12-22 20:01:59 +01:00
parent 815fa32d14
commit 14bcc47db2
4 changed files with 70 additions and 46 deletions

View File

@ -56,8 +56,8 @@
#define MAGIC_FILE "/usr/share/file/misc/magic.mgc"
int SOCKETS[NUM_SOCKETS];
pid_t CHILDREN[MAX_CHILDREN];
int sockets[NUM_SOCKETS];
pid_t children[MAX_CHILDREN];
FILE *parent_stdout, *parent_stderr;