Skip to content

Commit

Permalink
* win32/win32.c (rb_w32_getpid): don't need to use _getpid() on
Browse files Browse the repository at this point in the history
  mswin32 and mingw32.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
unak committed Sep 13, 2004
1 parent 1a17242 commit 977eb1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Sep 13 10:48:37 2004 NAKAMURA Usaku <[email protected]>

* win32/win32.c (rb_w32_getpid): don't need to use _getpid() on
mswin32 and mingw32.

Mon Sep 13 10:22:05 2004 NAKAMURA Usaku <[email protected]>

* object.c (nil_inspect): fix typo.
Expand Down
6 changes: 1 addition & 5 deletions win32/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -3300,17 +3300,13 @@ rb_w32_free_environ(char **env)
free(env);
}

#undef getpid
pid_t
rb_w32_getpid(void)
{
pid_t pid;

#ifndef __BORLANDC__
pid = _getpid();
#else
#undef getpid
pid = getpid();
#endif

if (IsWin95()) pid = -pid;

Expand Down

0 comments on commit 977eb1b

Please sign in to comment.