Summary: | svscan should start setsid()'ed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michal Januszewski (RETIRED) <spock> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | michael.mauch, sascha-gentoo-bugzilla, stian |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Michal Januszewski (RETIRED)
2005-03-24 11:33:18 UTC
why not patch svscan to detach from the controlling tty ? svscan could be patched, but it would require adding a new daemon mode, parsing command line arguments, etc. I guess it's easier, faster and cleaner to add the 7 characters that 'setsid ' is composed of to /etc/init.d/svscan. you would also need to redirect stdout and stderr to a file like /var/log/svscan.log. All in all svscan should be patched to iterate doit() once before closing stdout and stderr, reopen them from logfiles and fork() + setsid() Fixed in CVS. |