Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 86550

Summary: hddtemp needs to do setsid() when running in daemon mode
Product: Gentoo Linux Reporter: Michal Januszewski (RETIRED) <spock>
Component: Current packagesAssignee: Daniel Ahlberg (RETIRED) <aliz>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: A patch that adds the setsid() call.

Description Michal Januszewski (RETIRED) gentoo-dev 2005-03-24 10:29:33 UTC
When run as a daemon, hddtemp needs to call setsid() to switch to a new session. Otherwise, when /sbin/init uses a tty other than /dev/tty, hddtemp will be killed at the end of the system boot-up. This can happen when CONSOLE=/dev/tty1 or similar is added to the kernel command line.
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2005-03-24 10:30:19 UTC
Created attachment 54362 [details, diff]
A patch that adds the setsid() call.
Comment 2 Michal Januszewski (RETIRED) gentoo-dev 2005-07-13 09:32:32 UTC
Fixed in 0.3_beta13.