Bug 86550 - hddtemp needs to do setsid() when running in daemon mode
Bug#: 86550 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: aliz@gentoo.org Reported By: spock@gentoo.org
Component: Applications
URL: 
Summary: hddtemp needs to do setsid() when running in daemon mode
Keywords:  
Status Whiteboard: 
Opened: 2005-03-24 10:29 0000
Description:   Opened: 2005-03-24 10:29 0000
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 From Michal Januszewski 2005-03-24 10:30:19 0000 -------
Created an attachment (id=54362) [details]
A patch that adds the setsid() call.

------- Comment #2 From Michal Januszewski 2005-07-13 09:32:32 0000 -------
Fixed in 0.3_beta13.