summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-13 13:05:24 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-13 13:05:24 +0000
commit1184373d867f0e4792b3a6da11acfd2cf4c0b330 (patch)
treec93cdc524880d4142cfe48dcb194207d05a34263 /process.c
parentb6f1c0e2846acbbc9d694b1207c778e1d6db63e3 (diff)
* string.c (str_new4): should not preserve FL_TAINT status in the
internal shared string. [ruby-dev:21601] * string.c (rb_str_new4): ditto. * eval.c: use EXIT_SUCCESS and EXIT_FAILURE for exit values. * process.c: ditto. [ruby-dev:38521] * lib/debug.rb (debug_command): should enter emacs mode when assigned any value to the environment variable "EMACS". On Meadow, (getenv "EMACS") is "meadow". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/process.c b/process.c
index 24b75855a7..1920da2c44 100644
--- a/process.c
+++ b/process.c
@@ -17,6 +17,9 @@
#include <stdio.h>
#include <errno.h>
#include <signal.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -27,6 +30,10 @@
#include <time.h>
#include <ctype.h>
+#ifndef EXIT_FAILURE
+#define EXIT_FAILURE 1
+#endif
+
struct timeval rb_time_interval _((VALUE));
#ifdef HAVE_SYS_WAIT_H
@@ -874,7 +881,7 @@ rb_f_exit_bang(argc, argv, obj)
istatus = NUM2INT(status);
}
else {
- istatus = -1;
+ istatus = EXIT_FAILURE;
}
_exit(istatus);