Mercurial > emacs
comparison admin/notes/exit-value @ 55552:dc9bd6dd0d8d
New entry re clamping to EXIT_FAILURE.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Wed, 12 May 2004 14:39:34 +0000 |
parents | 843ab503fee2 |
children |
comparison
equal
deleted
inserted
replaced
55551:fe582ae1003e | 55552:dc9bd6dd0d8d |
---|---|
19 #else | 19 #else |
20 exit (0); | 20 exit (0); |
21 #endif | 21 #endif |
22 | 22 |
23 Values aside from EXIT_SUCCESS and EXIT_FAILURE are tricky. | 23 Values aside from EXIT_SUCCESS and EXIT_FAILURE are tricky. |
24 | |
25 | |
26 | |
27 ttn 2004-05-12 | |
28 | |
29 Values aside from EXIT_SUCCESS and EXIT_FAILURE can be used to indicate | |
30 finer gradations of failure. If this is the only information available | |
31 to the caller, clamping such values to EXIT_FAILURE loses information. | |
32 If there are other ways to indicate the problem to the caller (such as | |
33 a message to stderr) it may be ok to clamp. In all cases, it is the | |
34 relationship between the program and its caller that must be examined. | |
35 [Insert ZAMM quote here.] |