# HG changeset patch # User Thien-Thi Nguyen # Date 1084372774 0 # Node ID dc9bd6dd0d8da7091daa7205b3e5eb9224c8ae84 # Parent fe582ae1003e7ac64c5b3d29c2f82168be9fe8e9 New entry re clamping to EXIT_FAILURE. diff -r fe582ae1003e -r dc9bd6dd0d8d admin/notes/exit-value --- a/admin/notes/exit-value Wed May 12 11:03:59 2004 +0000 +++ b/admin/notes/exit-value Wed May 12 14:39:34 2004 +0000 @@ -21,3 +21,15 @@ #endif Values aside from EXIT_SUCCESS and EXIT_FAILURE are tricky. + + + +ttn 2004-05-12 + +Values aside from EXIT_SUCCESS and EXIT_FAILURE can be used to indicate +finer gradations of failure. If this is the only information available +to the caller, clamping such values to EXIT_FAILURE loses information. +If there are other ways to indicate the problem to the caller (such as +a message to stderr) it may be ok to clamp. In all cases, it is the +relationship between the program and its caller that must be examined. +[Insert ZAMM quote here.]