[前][次][番号順一覧][スレッド一覧]

ruby-changes:51657

From: normal <ko1@a...>
Date: Fri, 6 Jul 2018 15:50:10 +0900 (JST)
Subject: [ruby-changes:51657] normal:r63869 (trunk): mjit.c: fix waitpid macro return value for win32

normal	2018-07-06 15:50:04 +0900 (Fri, 06 Jul 2018)

  New Revision: 63869

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63869

  Log:
    mjit.c: fix waitpid macro return value for win32
    
    We started checking return value of waitpid, so it needs
    to be correct for win32 platforms for MJIT to work.
    
    Thanks-to: MSP-Greg (Greg L) <Greg.mpls@g...>
    
    [ruby-core:87832] [Bug #14867]

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 63868)
+++ mjit.c	(revision 63869)
@@ -132,7 +132,7 @@ rb_pid_t ruby_waitpid_locked(rb_vm_t *, https://github.com/ruby/ruby/blob/trunk/mjit.c#L132
 #define dlclose(handle) (FreeLibrary(handle))
 #define RTLD_NOW  -1
 
-#define waitpid(pid,stat_loc,options) (WaitForSingleObject((HANDLE)(pid), INFINITE), GetExitCodeProcess((HANDLE)(pid), (LPDWORD)(stat_loc)))
+#define waitpid(pid,stat_loc,options) (WaitForSingleObject((HANDLE)(pid), INFINITE), GetExitCodeProcess((HANDLE)(pid), (LPDWORD)(stat_loc)), (pid))
 #define WIFEXITED(S) ((S) != STILL_ACTIVE)
 #define WEXITSTATUS(S) (S)
 #define WIFSIGNALED(S) (0)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]