This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]