|
Home > Archive > Unix Programming > November 2006 > Signals the terminal sends
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Signals the terminal sends
|
|
| Neroku 2006-11-23, 1:16 pm |
| Hello there, I have a few question about signals.
If I have a running program called from bash, when I press Ctrl+C,
Which does send the SIGINT signal to the running process? Is it the
shell or the terminal?
I think the signal is sent by bash, because it's only delivered to the
running process, and when a terminal sends a signal, it sends the
signal to all process with the same session id.
so, Which signals can yield the terminal?
TIA
| |
| valamart@gmail.com 2006-11-27, 7:22 am |
| Neroku wrote:
> Hello there, I have a few question about signals.
> If I have a running program called from bash, when I press Ctrl+C,
> Which does send the SIGINT signal to the running process? Is it the
> shell or the terminal?
>
> I think the signal is sent by bash, because it's only delivered to the
> running process, and when a terminal sends a signal, it sends the
> signal to all process with the same session id.
Bash creates a new session for each pipeline it executes, and makes the
session leader a foreground termio process. Only processes in session
of foreground process get SIGINT from terminal.
Sorry for my english.
|
|
|
|
|