[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wait unblocks before signals processed

From: Andreas Schwab
Subject: Re: wait unblocks before signals processed
Date: Tue, 06 Nov 2012 19:47:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Elliott Forney <address@hidden> writes:

> I guess my question is "can more than one trap run simultaneously?"
> The more I think about it though, this is probably not possible.  It
> looks like the trap doesn't run in a subprocess

Traps are executed at command boundaries.

> and I presume traps are blocked inside of other traps.

Traps can be nested:

$ bash -c "trap 'echo INT; sleep 10; exit 2' INT; trap 'echo QUIT' QUIT; sleep 
10"; echo $?


Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]