Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 298722 Details for
Bug 432313
Backgrounded NFS mounts dies soon after "service netfs start" command is issued
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
util-linux-2.12a-mount-bg-daemonize.patch (text/plain), 878 bytes, created by
Jeff Layton
on 2008-03-20 17:56:08 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2008-03-20 17:56:08 UTC
Size:
878 bytes
patch
obsolete
>diff --git a/mount/mount.c b/mount/mount.c >index e4f4512..210c5a9 100644 >--- a/mount/mount.c >+++ b/mount/mount.c >@@ -1206,6 +1206,24 @@ free_label_dev(struct labelDev *ld) > } > > >+static int >+daemonize(void) >+{ >+ int i, err, fd; >+ >+ chdir("/"); >+ fd = open("/dev/null", O_RDWR); >+ if (fd < 0) >+ return -errno; >+ >+ for (i = 0; i < 3; i++) { >+ err = dup2(i, fd); >+ if (err < 0) >+ return -errno; >+ } >+ return 0; >+} >+ > /* > * Return 0 for success (either mounted sth or -a and NOAUTO was given) > */ >@@ -1298,6 +1316,7 @@ mount_one (const char *spec, const char *node, char *types, const char *opts, > types = xstrdup(types); > opts = xstrdup(opts); > set_proc_name (spec); /* make a nice "ps" listing */ >+ daemonize(); > status2 = try_mount_one (spec, node, types, opts, freq, pass, 1, 0); > if (verbose && status2) > printf (_("mount: giving up \"%s\"\n"), spec);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 432313
:
298722
|
299336
|
299358