ruby-changes:55622
From: git <ko1@a...>
Date: Tue, 30 Apr 2019 03:34:06 +0900 (JST)
Subject: [ruby-changes:55622] git:ae3a986204 (trunk): * expand tabs.
https://git.ruby-lang.org/ruby.git/commit/?id=ae3a986204 From ae3a9862048135f846f694b98031cf264889580f Mon Sep 17 00:00:00 2001 From: git <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Tue, 30 Apr 2019 03:33:51 +0900 Subject: * expand tabs. diff --git a/win32/win32.c b/win32/win32.c index 2e3f6c4..d14b903 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -6142,22 +6142,22 @@ rb_w32_getppid(void) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L6142 HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); if (hSnap != INVALID_HANDLE_VALUE) { - BOOL ok; - PROCESSENTRY32 pe; - DWORD pid = GetCurrentProcessId(); - pe.dwSize = sizeof(pe); - ok = Process32First(hSnap, &pe); - while (ok) { - if (pe.th32ProcessID == pid) { - ppid = (rb_pid_t)pe.th32ParentProcessID; - break; - } - ok = Process32Next(hSnap, &pe); - } - CloseHandle(hSnap); - if (ppid != 0) { - return ppid; - } + BOOL ok; + PROCESSENTRY32 pe; + DWORD pid = GetCurrentProcessId(); + pe.dwSize = sizeof(pe); + ok = Process32First(hSnap, &pe); + while (ok) { + if (pe.th32ProcessID == pid) { + ppid = (rb_pid_t)pe.th32ParentProcessID; + break; + } + ok = Process32Next(hSnap, &pe); + } + CloseHandle(hSnap); + if (ppid != 0) { + return ppid; + } } if (pNtQueryInformationProcess == (query_func *)-1) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/