svn commit: r185502 - head/sys/kern

David Xu davidxu at FreeBSD.org
Sun Nov 30 17:54:55 PST 2008


Author: davidxu
Date: Mon Dec  1 01:54:55 2008
New Revision: 185502
URL: http://svn.freebsd.org/changeset/base/185502

Log:
  Revision 184199 had not been fully reverted, add missing piece.
  
  Reported by: phk

Modified:
  head/sys/kern/subr_sleepqueue.c

Modified: head/sys/kern/subr_sleepqueue.c
==============================================================================
--- head/sys/kern/subr_sleepqueue.c	Mon Dec  1 01:45:52 2008	(r185501)
+++ head/sys/kern/subr_sleepqueue.c	Mon Dec  1 01:54:55 2008	(r185502)
@@ -424,6 +424,10 @@ sleepq_catch_signals(void *wchan, int pr
 	PROC_UNLOCK(p);
 	thread_lock(td);
 	PROC_SUNLOCK(p);
+	if (ret == 0) {
+		sleepq_switch(wchan, pri);
+		return (0);
+	}
 	/*
 	 * There were pending signals and this thread is still
 	 * on the sleep queue, remove it from the sleep queue.


More information about the svn-src-head mailing list