Ressurect libkvm use of the bitmasked signal list in the kernel, now that

reliable signal queues are gone.
This commit is contained in:
Juli Mallett 2002-10-01 17:17:32 +00:00
parent 1d9c56964d
commit e8a58a8362
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104307

View File

@ -192,13 +192,6 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
kp->ki_textvp = proc.p_textvp;
kp->ki_fd = proc.p_fd;
kp->ki_vmspace = proc.p_vmspace;
/*
* The pending signal list is private to the kernel, as the
* queue cannot be exported, and the interfaces used are
* not exposed to userland. For compatability, just install
* an empty signal set.
*/
SIGEMPTYSET(kp->ki_siglist);
if (proc.p_procsig != NULL) {
if (KREAD(kd, (u_long)proc.p_procsig, &procsig)) {
_kvm_err(kd, kd->program,
@ -334,6 +327,7 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt)
bintime2timeval(&proc.p_runtime, &tv);
kp->ki_runtime = (u_int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
kp->ki_pid = proc.p_pid;
kp->ki_siglist = proc.p_siglist;
kp->ki_sigmask = proc.p_sigmask;
kp->ki_xstat = proc.p_xstat;
kp->ki_acflag = proc.p_acflag;