From: nobu.nakada@... Date: 2003-10-12T22:33:23+09:00 Subject: [ruby-list:38521] Re: exit status on exit! なかだです。 At Sun, 12 Oct 2003 22:12:12 +0900, Yukihiro Matsumoto wrote: > |> # ANSI-C compliant なシステムなら EXIT_SUCCESS == 0 は常に成り立つ? > | > |ANSI-Cかどうかわかんないけど、VMSは確かEXIT_SUCCESSは1で、 > |EXIT_FAILUREは0です。という意味でもEXIT_FAILUREにすべきか。 > > パッチ歓迎。 こんなとこ? Index: process.c =================================================================== RCS file: /cvs/ruby/src/ruby/process.c,v retrieving revision 1.86 diff -u -2 -p -r1.86 process.c --- process.c 1 Oct 2003 15:14:22 -0000 1.86 +++ process.c 12 Oct 2003 13:30:59 -0000 @@ -18,4 +18,7 @@ #include #include +#ifdef HAVE_STDLIB_H +#include +#endif #ifdef HAVE_UNISTD_H #include @@ -28,4 +31,8 @@ #include +#ifndef EXIT_FAILURE +#define EXIT_FAILURE 1 +#endif + struct timeval rb_time_interval _((VALUE)); -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦