bug-bash
[Top][All Lists]
Advanced

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

Re: Possible bug: Race condition when calling external commands during t


From: Andreas Schwab
Subject: Re: Possible bug: Race condition when calling external commands during trap handling
Date: Thu, 03 May 2012 10:06:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux)

Bob Proulx <bob@proulx.com> writes:

> And lastly I will comment that you are doing quite a bit inside of an
> interrupt routine.  Typically in a C program it is not safe to perform
> any operation that may call malloc() within an interupt service
> routine since malloc isn't reentrant.  Bash is a C program and I
> assume the same restriction would apply.

Traps are executed only at command boundaries.  Executing them in a
signal handler would make them completely unusable, of course.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
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]