[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. 08ed00124d8b6b445d3b91a9aa15eec638b02f05

Timo Savola tsavola at movial.fi
Sun Nov 15 03:17:02 UTC 2009


The following commit has been merged in the upstream branch:
commit 617224e25907397de54b66818a0156b3f9ffb4e2
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