1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add check if fork failed

This commit is contained in:
Stefan Lankes 2017-02-18 12:32:29 +01:00
parent 1041ee7ab0
commit 879368a3d0

View file

@ -381,6 +381,9 @@ static int init_qemu(char *path)
fprintf(stderr, "Didn't find qemu\n");
exit(1);
} else if (id < 0) {
perror("fork");
exit(1);
}
// move the parent process to the end of the queue