signals of type SIGSEGV handled only once (in multithreaded process)

2008-02-15 Thread klement2
After excellently quick correction of pthread_kill when the argument signal is zero (by cgf), I have found another problem related to signal handling. The code in attachment demonstrates it ( because of pthread_kill, it must be run with cygwin1-20080213.dll and newer ). It seams that signal handler

pthread_kill when sig is zero

2008-02-13 Thread klement2
int pthread_kill(pthread_t thread, int sig); The posix function pthread_kill (in cygwin) does not perform error checking when the argument sig is zero, though it should according to standard. It means ESRCH is not returned when the thread is not valid (for example it exited before). Is it possi