diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2002-05-29 23:44:32 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2002-05-29 23:44:32 +0000 |
| commit | 628855e758dceb86dbaaffdf6d1733d36f610596 (patch) | |
| tree | 1bf88581a378e6244805a532f43ad6950e1168fc /sys/kern/kern_synch.c | |
| parent | ece450c42ffeb649b4393b9957dc3141186201c6 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_synch.c')
| -rw-r--r-- | sys/kern/kern_synch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index eb98bae2dbad..1615d5721cdc 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -468,12 +468,12 @@ msleep(ident, mtx, priority, wmesg, timo) callout_reset(&td->td_slpcallout, timo, endtsleep, td); /* * We put ourselves on the sleep queue and start our timeout - * before calling CURSIG, as we could stop there, and a wakeup + * before calling cursig, as we could stop there, and a wakeup * or a SIGCONT (or both) could occur while we were stopped. * A SIGCONT would cause us to be marked as SSLEEP * without resuming us, thus we must be ready for sleep - * when CURSIG is called. If the wakeup happens while we're - * stopped, td->td_wchan will be 0 upon return from CURSIG. + * when cursig is called. If the wakeup happens while we're + * stopped, td->td_wchan will be 0 upon return from cursig. */ if (catch) { CTR3(KTR_PROC, "msleep caught: proc %p (pid %d, %s)", p, @@ -481,7 +481,7 @@ msleep(ident, mtx, priority, wmesg, timo) td->td_flags |= TDF_SINTR; mtx_unlock_spin(&sched_lock); PROC_LOCK(p); - sig = CURSIG(p); + sig = cursig(p); mtx_lock_spin(&sched_lock); PROC_UNLOCK(p); if (sig != 0) { @@ -524,8 +524,8 @@ msleep(ident, mtx, priority, wmesg, timo) if (rval == 0 && catch) { PROC_LOCK(p); - /* XXX: shouldn't we always be calling CURSIG() */ - if (sig != 0 || (sig = CURSIG(p))) { + /* XXX: shouldn't we always be calling cursig() */ + if (sig != 0 || (sig = cursig(p))) { if (SIGISMEMBER(p->p_sigacts->ps_sigintr, sig)) rval = EINTR; else |
