Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: SIGTTOU old problem



Borzenkov Andrey wrote:
> At work I still have attached patch. Comments what should become of it?

>-    trap "" SIGTTOU > /dev/null 2>&1 || :
>+    ( trap "" SIGTTOU > /dev/null 2>&1 ) && trap "" SIGTTOU > /dev/null 2>&1 

Well, it *looks* harmless enough.

By the way, this will fail if sh happens to be zsh since we don't strip
the SIG from the signal name, which appears to be optional in other
shells.  (ksh and bash differ in whether the output shows the SIG or not.)

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author