[linux-user-chroot] Exit immediately if clone() fails



commit 3af381d5ef6fa8b479589583db8c4efb199878e4
Author: Colin Walters <walters verbum org>
Date:   Fri Aug 10 15:35:09 2012 -0400

    Exit immediately if clone() fails
    
    This happens when run recursively.

 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)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]