From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Boris V. Guzhov" To: "Jonathan Larmour" Cc: Subject: Re: [ECOS] select() and signal's Date: Sat, 21 Apr 2001 05:52:00 -0000 Message-id: <005701c0ca60$e97f7750$7601a8c0@borg> References: <01b701c0c996$c29891f0$7601a8c0@borg> <3AE0404E.B3BE865C@redhat.com> <01f801c0c9ab$be16cdd0$7601a8c0@borg> <3AE097E4.54468B43@redhat.com> X-SW-Source: 2001-04/msg00280.html I tried this patch. And it works. But there are some questions. Now pthread_kill() interrupts not only select() function but also sem_wait(). As far as I know, semaphores are a general synchronization mechanism and they can be used with a signal-cathing function (in particular, semaphores can be posted from a POSIX signal-catching function). For instance, in Linux pthread_kill() don't interrupts sem_wait(). > Try the attached patch and let me know how you get on. I've only done some > simple tests. But I want you to try it with your existing code rather than > me spending more time on it[1]. *Do* let me know the outcome. > > Jifl >