Re: where are fsck return values documented?

[email protected] (Christos Zoulas)
Newsgroups gmane.os.netbsd.devel.general
Organization Astron Software
Message-ID <[email protected]>
On Feb 25,  4:13pm, [email protected] (Luke Mewburn) wrote:
-- Subject: Re: where are fsck return values documented?

| On Sat, Feb 23, 2008 at 08:43:33PM +0000, Christos Zoulas wrote:
|   | In article <[email protected]>,
|   | Jeremy C. Reed <[email protected]> wrote:
|   | >And where does 130 come from?
|   | >
|   |=20
|   | 128 + 2 [SIGNALLED + SIGINT], should not really be there, but fsck_msdos
|   | does not catch signals :-( Someone should fix it :-)
| 
| Is it worth converting fsck(8) and fsck_*(8) to correctly
| re-raise the default handler for SIGINT, as per
| 	http://www.cons.org/cracauer/sigint.html
| ?

I am not sure if it is worth it, but if tested yes because this will
give us the proper signal number, not just 12.

| I'm not sure how to detect that an application exited
| with a signal from sh(1).

It depends on the trap status, if we are ignoring it, we can look
at the status code and it will be 128 + signum, right?

| (I've converted various tools in the tree to using
| raise_default_signal(3) (in libutil) so that they have
| the signal behaviour as described in the URL above.)

Good.

christos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.