diff options
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | process.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Mon May 19 13:29:58 2008 NAKAMURA Usaku <usa@ruby-lang.org> + + * process.c (rb_f_system): set last_status when status == -1 because + there is no path to set it on win32. this patch is derived from + [ruby-core:16787], submitted by Luis Lavena <luislavena at gmail.com> + Mon May 19 13:01:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * common.mk ({MSPEC,RUBYSPEC}_GIT_URL): moved from Makefine.in. @@ -1519,6 +1519,9 @@ rb_f_system(argc, argv) } #if !defined(_WIN32) last_status_set(status == -1 ? 127 : status, 0); +#else + if (status == -1) + last_status_set(0x7f << 8, 0); #endif #elif defined(__VMS) VALUE cmd; |
