[NCLUG] I think

Alan Silverstein ajs at frii.com
Fri Feb 21 20:24:29 MST 2014


Bob et al,

> Be careful trapping PIPE if the trap handler prints any output.
> Otherwise you it will trigger another SIGPIPE and it will repeat until
> hitting the stack size limit.

I seem to recall that the first thing I'd have a trap handler function
do is disable all previously set traps.  Not sure 'cause this was all
work-for-hire and apparently I didn't take "home" any of my templates...

> Basically you can treat HUP INT QUIT TERM all the same.  But if PIPE
> needs to be trapped then it can't make any output.

Good point.

Cheers,
Alan


More information about the NCLUG mailing list