Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98342 - boinc should start setsid()'ed
Summary: boinc should start setsid()'ed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-08 05:29 UTC by Michal Januszewski (RETIRED)
Modified: 2005-08-13 17:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Januszewski (RETIRED) gentoo-dev 2005-07-08 05:29:27 UTC
When /sbin/init (from sys-apps/sysvinit) is started with a kernel command line argument such as CONSOLE=/dev/tty1, the specified tty is used for text output instead of the foreground tty. Init forces this tty to be the controlling tty for all programs listed in inittab. When a program does not detach from this tty, it's killed at the end of the boot process. 

boinc doesn't detach itself from the its controlling tty, and thus doesn't work properly when ttys other than /dev/tty are used by init. The problem can be easily fixed by making boinc run in its own session -- ie. by changing: 

start-stop-daemon --quiet --start --exec ${BOINCBIN} --chuid ${USER}:${GROUP} --nicelevel ${NICELEVEL} -- ${ARGS} > ${LOGFILE} 2>&1 &

to

setsid start-stop-daemon --quiet --start --exec ${BOINCBIN} --chuid ${USER}:${GROUP} --nicelevel ${NICELEVEL} -- ${ARGS} > ${LOGFILE} 2>&1 &
Comment 1 Olivier Fisette (RETIRED) gentoo-dev 2005-08-13 17:20:31 UTC
Thanks for the suggestion. This is now in Portage.