]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/patches/07-daemonize-instead-of-fork.patch
Imported Debian patch 1.1.1~git-20070709-2
[nfs-utils.git] / debian / patches / 07-daemonize-instead-of-fork.patch
1 Index: nfs-utils-1.1.1~git-20070709/utils/mount/mount.c
2 ===================================================================
3 --- nfs-utils-1.1.1~git-20070709.orig/utils/mount/mount.c
4 +++ nfs-utils-1.1.1~git-20070709/utils/mount/mount.c
5 @@ -530,9 +530,7 @@ int main(int argc, char *argv[])
6                  * Parent exits immediately with success.  Make
7                  * sure not to free "mount_point"
8                  */
9 -               if (fork() > 0)
10 -                       exit(0);
11 -
12 +               daemon(0,0);
13                 mnt_err = try_mount(spec, mount_point, flags, fs_type,
14                                         &extra_opts, mount_opts, fake,
15                                         nomtab, BACKGROUND);