diff options
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r-- | sys/fs/procfs/procfs_ctl.c | 2 | ||||
-rw-r--r-- | sys/fs/procfs/procfs_ioctl.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs_ctl.c b/sys/fs/procfs/procfs_ctl.c index 19758d8..c9572b6 100644 --- a/sys/fs/procfs/procfs_ctl.c +++ b/sys/fs/procfs/procfs_ctl.c @@ -352,7 +352,7 @@ procfs_doprocctl(PFS_FILL_ARGS) mtx_lock_spin(&sched_lock); /* XXXKSE: */ p->p_flag &= ~P_STOPPED_SIG; - setrunnable(FIRST_THREAD_IN_PROC(p)); + thread_unsuspend(p); mtx_unlock_spin(&sched_lock); } else psignal(p, nm->nm_val); diff --git a/sys/fs/procfs/procfs_ioctl.c b/sys/fs/procfs/procfs_ioctl.c index 1dd0b6d..170a810 100644 --- a/sys/fs/procfs/procfs_ioctl.c +++ b/sys/fs/procfs/procfs_ioctl.c @@ -97,8 +97,7 @@ procfs_ioctl(PFS_IOCTL_ARGS) if (P_SHOULDSTOP(p)) { p->p_xstat = sig; p->p_flag &= ~(P_STOPPED_TRACE|P_STOPPED_SIG); - FOREACH_THREAD_IN_PROC(p, td) - setrunnable(td); /* XXX Totally bogus */ + thread_unsuspend(p); mtx_unlock_spin(&sched_lock); } else { mtx_unlock_spin(&sched_lock); |