Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86550 - hddtemp needs to do setsid() when running in daemon mode
Summary: hddtemp needs to do setsid() when running in daemon mode
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 10:29 UTC by Michal Januszewski (RETIRED)
Modified: 2005-07-13 09:32 UTC (History)
0 users

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


Attachments
A patch that adds the setsid() call. (hddtemp-setsid.patch,348 bytes, patch)
2005-03-24 10:30 UTC, Michal Januszewski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.