X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Fpatches%2F07-daemonize-instead-of-fork.patch;fp=debian%2Fpatches%2F07-daemonize-instead-of-fork.patch;h=5ae0f899c06724b5a2ecaef04dc97817f0a999fd;hb=3eb41ec41c081037e230934982804a93abe12610;hp=0000000000000000000000000000000000000000;hpb=94685afe49d3b0c8858efb0d1f1d1ebce430e12f;p=nfs-utils.git diff --git a/debian/patches/07-daemonize-instead-of-fork.patch b/debian/patches/07-daemonize-instead-of-fork.patch new file mode 100644 index 0000000..5ae0f89 --- /dev/null +++ b/debian/patches/07-daemonize-instead-of-fork.patch @@ -0,0 +1,15 @@ +Index: nfs-utils-1.1.1~git-20070709/utils/mount/mount.c +=================================================================== +--- nfs-utils-1.1.1~git-20070709.orig/utils/mount/mount.c ++++ nfs-utils-1.1.1~git-20070709/utils/mount/mount.c +@@ -530,9 +530,7 @@ int main(int argc, char *argv[]) + * Parent exits immediately with success. Make + * sure not to free "mount_point" + */ +- if (fork() > 0) +- exit(0); +- ++ daemon(0,0); + mnt_err = try_mount(spec, mount_point, flags, fs_type, + &extra_opts, mount_opts, fake, + nomtab, BACKGROUND);