Date: Sat, 24 Oct 1998 02:44:18 -0400 (EDT) From: Luoqi Chen <luoqi@watermarkgroup.com> To: Don.Lewis@tsc.tdk.com, hackers@FreeBSD.ORG, jau@jau.tmt.tele.fi Subject: Re: question about getsid() Message-ID: <199810240644.CAA00573@lor.watermarkgroup.com>
next in thread | raw e-mail | index | archive | help
> > I looked at this some more and it appears I was mistaken. When the > session leader exits, exit1() in kern_exit.c does > sp->s_leader = NULL; > This means that getsid() will dereference the NULL pointer and panic > the system. > > getsid() needs to verify s_leader is not NULL before dereferencing it, > but what should getsid() return if there is no session leader? > If the session leader is gone, the session losts the ability to acquire a controlling terminal, which is the sole purpose of its existence. This session should be disbanded, and member process groups join session 0. -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810240644.CAA00573>
