Re: svn commit: r209595 - head/sys/kern

2010-06-30 Thread Matthew Jacob
John Baldwin wrote: On Wednesday 30 June 2010 9:59:34 am Matthew Jacob wrote: Excuse my ignorance, but aren't signals supposed to be to processes, not specific threads? Not for synchronous events. For example, when you get a segfault due to a NULL pointer the SIGSEGV is sent to the th

Re: svn commit: r209595 - head/sys/kern

2010-06-30 Thread John Baldwin
On Wednesday 30 June 2010 9:59:34 am Matthew Jacob wrote: > Excuse my ignorance, but aren't signals supposed to be to processes, not > specific threads? Not for synchronous events. For example, when you get a segfault due to a NULL pointer the SIGSEGV is sent to the thread that actually segfault

Re: svn commit: r209595 - head/sys/kern

2010-06-30 Thread Matthew Jacob
Excuse my ignorance, but aren't signals supposed to be to processes, not specific threads? My memory/knowledge of Posix in this area is very rusty. On Tuesday 29 June 2010 5:05:22 pm Ed Schouten wrote: * John Baldwin wrote: Log: Send SIGPIPE to the thread that issued the offend

Re: svn commit: r209595 - head/sys/kern

2010-06-30 Thread John Baldwin
On Tuesday 29 June 2010 5:05:22 pm Ed Schouten wrote: > * John Baldwin wrote: > > Log: > > Send SIGPIPE to the thread that issued the offending system call > > rather than to the entire process. > > Should something similar be used inside the TTY layer, where > reads/writes may cause signals

Re: svn commit: r209595 - head/sys/kern

2010-06-29 Thread Jilles Tjoelker
On Tue, Jun 29, 2010 at 11:05:22PM +0200, Ed Schouten wrote: > * John Baldwin wrote: > > Log: > > Send SIGPIPE to the thread that issued the offending system call > > rather than to the entire process. > Should something similar be used inside the TTY layer, where > reads/writes may cause sig

Re: svn commit: r209595 - head/sys/kern

2010-06-29 Thread Ed Schouten
* John Baldwin wrote: > Log: > Send SIGPIPE to the thread that issued the offending system call > rather than to the entire process. Should something similar be used inside the TTY layer, where reads/writes may cause signals to be generated? Greetings, -- Ed Schouten WWW: http://80386.nl

svn commit: r209595 - head/sys/kern

2010-06-29 Thread John Baldwin
Author: jhb Date: Tue Jun 29 20:44:19 2010 New Revision: 209595 URL: http://svn.freebsd.org/changeset/base/209595 Log: Send SIGPIPE to the thread that issued the offending system call rather than to the entire process. Reported by: Anit Chakraborty Reviewed by: kib, deischen (concept)