ruby-changes:13407
From: usa <ko1@a...>
Date: Fri, 2 Oct 2009 13:40:48 +0900 (JST)
Subject: [ruby-changes:13407] Ruby:r25176 (ruby_1_8): * win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId()
usa 2009-10-02 13:39:04 +0900 (Fri, 02 Oct 2009) New Revision: 25176 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25176 Log: * win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId() instead of calling MSVCRT's getpid(). Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/win32/win32.c Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 25175) +++ ruby_1_8/ChangeLog (revision 25176) @@ -1,3 +1,8 @@ +Fri Oct 2 13:38:52 2009 NAKAMURA Usaku <usa@r...> + + * win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId() + instead of calling MSVCRT's getpid(). + Sat Sep 26 13:32:00 2009 Marc-Andre Lafortune <ruby-core@m...> * lib/net/http.rb (transport_request): Handle timeout error by Index: ruby_1_8/win32/win32.c =================================================================== --- ruby_1_8/win32/win32.c (revision 25175) +++ ruby_1_8/win32/win32.c (revision 25176) @@ -3925,13 +3925,12 @@ free(env); } -#undef getpid rb_pid_t rb_w32_getpid(void) { rb_pid_t pid; - pid = getpid(); + pid = GetCurrentProcessId(); if (IsWin95()) pid = -pid; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/