diff options
author | Colin Walters <walters@verbum.org> | 2012-08-10 15:35:09 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-08-10 15:35:09 -0400 |
commit | 3af381d5ef6fa8b479589583db8c4efb199878e4 (patch) | |
tree | bc698b143ab759e63ed6002006e1dc1fef278695 | |
parent | ce49cffb83d35e550c16b7aee23fac262e6f359d (diff) | |
download | linux-user-chroot-3af381d5ef6fa8b479589583db8c4efb199878e4.tar.gz |
Exit immediately if clone() fails
This happens when run recursively.
-rw-r--r-- | src/linux-user-chroot.c | 2 |
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) { |