summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-13 10:11:31 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-13 10:11:31 +0000
commite9cf3b3bf56646e94df9189bfe8d6449b79ca0fb (patch)
tree259d2feaf2b84b2ef99ca34eef43d465a3134620 /process.c
parent2a1b0ff2326ae53c299206f983413fa00a2c7ec5 (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 88fac00..31505c8 100644
--- a/process.c
+++ b/process.c
@@ -657,7 +657,7 @@ rb_f_system(argc, argv)
Check_SafeStr(cmd);
state = system(RSTRING(cmd)->ptr);
- rb_last_status = INT2FIX(state);
+ rb_last_status = INT2FIX((state & 0xff) << 8);
if (state == 0) return Qtrue;
return Qfalse;