help-bash
[Top][All Lists]
Advanced

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

Re: How does bash deal with signal?


From: Koichi Murase
Subject: Re: How does bash deal with signal?
Date: Tue, 6 Apr 2021 15:49:14 +0900

2021年3月25日(木) 13:44 Peng Yu <pengyu.ut@gmail.com>:
> I see sigaction() and signal() are not exactly the same. Does bash
> code use sigaction() exclusively?

I haven't looked at the Bash code thoroughly, but IIRC, Bash basically
uses `sigaction ()' and also basically just raises flags in a bit
vector in the signal handlers. The actual handling of signals is
mainly done in ``trap handlers'' (which Bash implements and are
invoked by Bash between the execution of shell commands).

--
Koichi



reply via email to

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