From 3af381d5ef6fa8b479589583db8c4efb199878e4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 10 Aug 2012 15:35:09 -0400 Subject: Exit immediately if clone() fails This happens when run recursively. --- src/linux-user-chroot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.1