help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] What are the default values of signal handles?


From: Chet Ramey
Subject: Re: [Help-bash] What are the default values of signal handles?
Date: Mon, 08 Jul 2013 21:15:48 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

On 7/8/13 8:48 PM, Peng Yu wrote:
>> Bash doesn't (and can't) document that.  The `original values' are the
>> signal dispositions that were in place when the shell was started.  That
>> depends on how the parent process set them.
> 
> Do you know where I can find the document for default ubuntu and Mac
> OS X installations?

It doesn't really matter whether there is a system default.  A process's
initial signal dispositions depend on its parent (SIG_DFL vs. SIG_IGN).
If you really want to know what happens on your system, write a program
that calls signal() on every signal and prints SIG_IGN or SIG_DFL as
appropriate.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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