ruby-changes:23909
From: nobu <ko1@a...>
Date: Fri, 8 Jun 2012 12:04:54 +0900 (JST)
Subject: [ruby-changes:23909] nobu:r35960 (trunk): process.c: child process error state
nobu 2012-06-08 12:04:42 +0900 (Fri, 08 Jun 2012) New Revision: 35960 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35960 Log: process.c: child process error state * process.c (rb_fork_err): error state in the child process is prior to exceptions in proc_syswait(). Modified files: trunk/ChangeLog trunk/process.c Index: ChangeLog =================================================================== --- ChangeLog (revision 35959) +++ ChangeLog (revision 35960) @@ -1,5 +1,8 @@ -Fri Jun 8 11:26:37 2012 Nobuyoshi Nakada <nobu@r...> +Fri Jun 8 12:04:39 2012 Nobuyoshi Nakada <nobu@r...> + * process.c (rb_fork_err): error state in the child process is prior + to exceptions in proc_syswait(). + * process.c (rb_fork_err): determine status on errors. * ext/pty/pty.c (establishShell): reraise exception if something Index: process.c =================================================================== --- process.c (revision 35959) +++ process.c (revision 35960) @@ -2874,8 +2874,8 @@ rb_io_close(io); if (state || size) { if (status) { - *status = state; rb_protect(proc_syswait, (VALUE)pid, status); + if (state) *status = state; } else { rb_syswait(pid); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/