summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>1998-11-09 15:08:04 +0000
committertruckman <truckman@FreeBSD.org>1998-11-09 15:08:04 +0000
commita2af3a6c6c15b7eca638b34ca50e37c6f4f3f8e3 (patch)
treee0ce117bebd708970017ec03fdb12380311ec08d /sbin
parent0ba40b32fa2a18e3c58c8d152e72598fae7208f1 (diff)
downloadFreeBSD-src-a2af3a6c6c15b7eca638b34ca50e37c6f4f3f8e3.zip
FreeBSD-src-a2af3a6c6c15b7eca638b34ca50e37c6f4f3f8e3.tar.gz
If the session leader dies, s_leader is set to NULL and getsid() may
dereference a NULL pointer, causing a panic. Instead of following s_leader to find the session id, store it in the session structure. Jukka found the following info: BTW - I just found what I have been looking for. Std 1003.1 Part 1: SYSTEM API [C LANGUAGE] section 2.2.2.80 states quite explicitly... Session lifetime: The period between when a session is created and the end of lifetime of all the process groups that remain as members of the session. So, this quite clearly tells that while there is any single process in any process group which is a member of the session, the session remains as an independent entity. Reviewed by: peter Submitted by: "Jukka A. Ukkonen" <jau@jau.tmt.tele.fi>
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud