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

ruby-changes:13402

From: usa <ko1@a...>
Date: Thu, 1 Oct 2009 13:24:17 +0900 (JST)
Subject: [ruby-changes:13402] Ruby:r25171 (trunk): * win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId()

usa	2009-10-01 13:23:59 +0900 (Thu, 01 Oct 2009)

  New Revision: 25171

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25171

  Log:
    * win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId()
      instead of calling MSVCRT's getpid().

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25170)
+++ ChangeLog	(revision 25171)
@@ -1,3 +1,8 @@
+Thu Oct  1 13:23:14 2009  NAKAMURA Usaku  <usa@r...>
+
+	* win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId()
+	  instead of calling MSVCRT's getpid().
+
 Wed Sep 30 13:15:45 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm_method.c (rb_add_method_def): show the location where
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 25170)
+++ win32/win32.c	(revision 25171)
@@ -4426,13 +4426,12 @@
     free(env);
 }
 
-#undef getpid
 rb_pid_t
 rb_w32_getpid(void)
 {
     rb_pid_t pid;
 
-    pid = getpid();
+    pid = GetCurrentProcessId();
 
     (void)IfWin95(pid = -pid, 0);
 

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

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