summaryrefslogtreecommitdiff
path: root/xc/programs
diff options
context:
space:
mode:
authormor <empty>1995-05-12 16:36:37 +0000
committermor <empty>1995-05-12 16:36:37 +0000
commitee867e42018af41ddc8e8381a416cc070d142a37 (patch)
tree0e277cd24b02d17729c3b85418b74999ea737726 /xc/programs
parent20df3800b5f8e72660a6b886c2e93e4eeca68a7e (diff)
BUG #7401: xset: returns success status even when it fails
Diffstat (limited to 'xc/programs')
-rw-r--r--xc/programs/xset/xset.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/xc/programs/xset/xset.c b/xc/programs/xset/xset.c
index 05e72ade6..e3655b5bf 100644
--- a/xc/programs/xset/xset.c
+++ b/xc/programs/xset/xset.c
@@ -1,5 +1,5 @@
/*
- * $XConsortium: xset.c,v 1.67 94/03/04 18:06:25 rws Exp $
+ * $XConsortium: xset.c,v 1.68 94/04/17 20:24:16 rws Exp mor $
*/
/*
@@ -29,7 +29,7 @@ in this Software without prior written authorization from the X Consortium.
*/
-/* $XConsortium: xset.c,v 1.67 94/03/04 18:06:25 rws Exp $ */
+/* $XConsortium: xset.c,v 1.68 94/04/17 20:24:16 rws Exp mor $ */
#include <stdio.h>
#include <ctype.h>
@@ -68,6 +68,8 @@ in this Software without prior written authorization from the X Consortium.
char *progName;
+int error_status = 0;
+
int local_xerror();
main(argc, argv)
@@ -426,7 +428,7 @@ if (numpixels)
XCloseDisplay (dpy);
-exit(0); /* Done. We can go home now. */
+exit(error_status); /* Done. We can go home now. */
}
@@ -1006,5 +1008,8 @@ int local_xerror (dpy, rep)
}
} else
XmuPrintDefaultErrorMessage (dpy, rep, stderr);
+
+ error_status = -1;
+
return (0);
}