summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-08-10 15:35:09 -0400
committerColin Walters <walters@verbum.org>2012-08-10 15:35:09 -0400
commit3af381d5ef6fa8b479589583db8c4efb199878e4 (patch)
treebc698b143ab759e63ed6002006e1dc1fef278695
parentce49cffb83d35e550c16b7aee23fac262e6f359d (diff)
downloadlinux-user-chroot-3af381d5ef6fa8b479589583db8c4efb199878e4.tar.gz
Exit immediately if clone() fails
This happens when run recursively.
-rw-r--r--src/linux-user-chroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux-user-chroot.c b/src/linux-user-chroot.c
index 3d5700c..217d651 100644
--- a/src/linux-user-chroot.c
+++ b/src/linux-user-chroot.c
@@ -275,7 +275,7 @@ main (int argc,
clone_flags |= CLONE_NEWNET;
if ((child = syscall (__NR_clone, clone_flags, NULL)) < 0)
- perror ("clone");
+ fatal_errno ("clone");
if (child == 0)
{