mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId()
instead of calling MSVCRT's getpid(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b192302ec
commit
a93b36b3e5
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Oct 1 13:23:14 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Wed Sep 30 13:15:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* vm_method.c (rb_add_method_def): show the location where
|
* vm_method.c (rb_add_method_def): show the location where
|
||||||
|
|
|
@ -4426,13 +4426,12 @@ rb_w32_free_environ(char **env)
|
||||||
free(env);
|
free(env);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef getpid
|
|
||||||
rb_pid_t
|
rb_pid_t
|
||||||
rb_w32_getpid(void)
|
rb_w32_getpid(void)
|
||||||
{
|
{
|
||||||
rb_pid_t pid;
|
rb_pid_t pid;
|
||||||
|
|
||||||
pid = getpid();
|
pid = GetCurrentProcessId();
|
||||||
|
|
||||||
(void)IfWin95(pid = -pid, 0);
|
(void)IfWin95(pid = -pid, 0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue