diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-01 04:23:59 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-01 04:23:59 +0000 |
commit | bb790b43e181833594f7789771867b339b460496 (patch) | |
tree | 31a954d178623f6f9fe33531d5dbc4baa3f2b61a /win32 | |
parent | 8aee5c01add6bdc95a29601be119009932ab1d89 (diff) | |
download | ruby-bb790b43e181833594f7789771867b339b460496.tar.gz ruby-bb790b43e181833594f7789771867b339b460496.tar.xz ruby-bb790b43e181833594f7789771867b339b460496.zip |
* win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId()
instead of calling MSVCRT's getpid().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index 222af78c7..d832ef3d6 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4426,13 +4426,12 @@ rb_w32_free_environ(char **env) free(env); } -#undef getpid rb_pid_t rb_w32_getpid(void) { rb_pid_t pid; - pid = getpid(); + pid = GetCurrentProcessId(); (void)IfWin95(pid = -pid, 0); |