[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: popen problem with command line interpreter
- From: M Joonas Pihlaja <jpihlaja@...>
- Date: Sun, 28 Feb 2010 00:41:25 +0200 (EET)
On Sat, 27 Feb 2010, Tony Finch wrote:
> On Sat, 27 Feb 2010, Rob Kendrick wrote:
> >
> > Although I notice that 5.2-work2 optionally includes unistd.h, so
> > perhaps it could optionally trap SIGPIPE?
>
> It would be wrong for Lua to trap SIGPIPE. Only the program knows if that
> would be the right thing to do. SIGPIPE is not trapped by detfault in C so
> it should not be by default in Lua.
On further consideration, I'm inclined to agree that SIGPIPE should
not be ignored. What clinched it was the argument here
http://bugs.python.org/issue1652.
Joonas