This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: select() and signal's
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
>