Date: Tue, 13 Jan 1998 15:23:37 -0800 From: Tom Proett <proett@nas.nasa.gov> To: freebsd-hackers@FreeBSD.ORG Subject: session id gets dropped Message-ID: <199801132323.PAA23244@tailspin.nas.nasa.gov>
next in thread | raw e-mail | index | archive | help
I am working with a batch system that uses the POSIX session to keep track of which processes comprise a "job". Under FreeBSD, I use kvm_getprocs() to get information for all the proceses then use kvm_read() to read the session structure for each process (pointed to by kp_eproc.e_sess). It turns out that the s_leader field in the session structure becomes NULL if the session leader exits. Why is there no s_sid field in the session structure to use as a session id even if the leader is gone? Even better would be for this to be replicated in the kp_eproc struct in kinfo_proc like e_ppid, e_pgid, etc. If nobody thinks it's a bad idea, I will look into making the change. Tom Proett -- proett@nas.nasa.gov NASA Ames Research Center
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801132323.PAA23244>