help-bash
[Top][All Lists]
Advanced

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

How does bash deal with signal?


From: Peng Yu
Subject: How does bash deal with signal?
Date: Wed, 24 Mar 2021 23:44:10 -0500

Hi,

I see sigaction() and signal() are not exactly the same. Does bash
code use sigaction() exclusively?

https://stackoverflow.com/questions/231912/what-is-the-difference-between-sigaction-and-signal

If so, I can expect all other signals will be blocked until the
current handler returns?

And there should be not a vulnerability like the following in bash?

"This means that the signal() handler must reinstall itself as its
first action. It also opens up a window of vulnerability ..."

-- 
Regards,
Peng



reply via email to

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