Commit 3af381d5 authored by Colin Walters's avatar Colin Walters

Exit immediately if clone() fails

This happens when run recursively.
parent ce49cffb
...@@ -275,7 +275,7 @@ main (int argc, ...@@ -275,7 +275,7 @@ main (int argc,
clone_flags |= CLONE_NEWNET; clone_flags |= CLONE_NEWNET;
if ((child = syscall (__NR_clone, clone_flags, NULL)) < 0) if ((child = syscall (__NR_clone, clone_flags, NULL)) < 0)
perror ("clone"); fatal_errno ("clone");
if (child == 0) if (child == 0)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment