[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. debian/1.14.3-200-gb232f8a

Timo Savola tsavola at movial.fi
Tue Aug 23 13:05:38 UTC 2011


The following commit has been merged in the upstream branch:
commit 803537631054cda02dce01802f60f95062bf1b2c
Author: Timo Savola <tsavola at movial.fi>
Date:   Wed May 25 09:37:26 2005 +0000

    Undo unnecessary "fix" in fork wrapper
    
    (There is no reason to preserve errno when not returning -1.)
    
    git-archimport-id: fakeroot at packages.debian.org--fakeroot/fakeroot--main--0.0--patch-71

diff --git a/libfakeroot.c b/libfakeroot.c
index 7035890..58e3f2e 100644
--- a/libfakeroot.c
+++ b/libfakeroot.c
@@ -902,15 +902,11 @@ pid_t fork(void)
   pid = next_fork();
 
   if (pid == 0) {
-    int err = errno;
-
     /* No need to lock in the child process. */
     if (comm_sd >= 0) {
       next_close(comm_sd);
       comm_sd = -1;
     }
-
-    errno = err;
   }
 
   return pid;

-- 
fakeroot



More information about the Fakeroot-commits mailing list