[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: popen problem with command line interpreter
- From: Rob Kendrick <rjek@...>
- Date: Sun, 28 Feb 2010 00:02:47 +0000
On Sat, 27 Feb 2010 22:23:10 +0000
Tony Finch <email@example.com> 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.
I'm only suggesting the command line interpreter might want to, not the
library itself. (Simply so the command line interpreter can inform the
user, rather than simply vanishing.)