[PATCH,HURD] Unlock _hurd_dtable_lock mutex in signal_allowed()

Samuel Thibault samuel.thibault@ens-lyon.org
Wed Jan 7 01:42:00 GMT 2009


Hello,

There is a missing unlock in signal processing.

Samuel


2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
	mutex after SIGIO/SIGURG lookup loop.

Index: hurd/hurdsig.c
===================================================================
RCS file: /cvs/glibc/libc/hurd/hurdsig.c,v
retrieving revision 1.160
diff -u -p -r1.160 hurdsig.c
--- hurd/hurdsig.c	8 Mar 2008 21:47:23 -0000	1.160
+++ hurd/hurdsig.c	7 Jan 2009 01:34:25 -0000
@@ -1134,6 +1134,7 @@ signal_allowed (int signo, mach_port_t r
 	      }
 	    _hurd_port_free (&_hurd_dtable[d]->port, &ulink, port);
 	  }
+	__mutex_unlock (&_hurd_dtable_lock);
 	/* If we found a lucky winner, we've set D to -1 in the loop.  */
 	if (lucky)
 	  goto win;



More information about the Libc-alpha mailing list