mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restarter fixes
This commit is contained in:
Binary file not shown.
@@ -9,11 +9,13 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
if (argc < 3) return 0;
|
||||
int ppid = _ttoi(argv [1]);
|
||||
HANDLE parent_process = OpenProcess(SYNCHRONIZE, FALSE, ppid);
|
||||
if (!parent_process) return 0;
|
||||
WaitForSingleObject(parent_process, INFINITE);
|
||||
CloseHandle(parent_process);
|
||||
if (parent_process)
|
||||
{
|
||||
WaitForSingleObject(parent_process, INFINITE);
|
||||
CloseHandle(parent_process);
|
||||
}
|
||||
|
||||
int rc = _texecv(argv [2], argv+3);
|
||||
int rc = _texecv(argv [2], argv+2);
|
||||
if (rc == -1)
|
||||
{
|
||||
_tprintf(_T("Error restarting process: errno is %d"), errno);
|
||||
|
||||
Reference in New Issue
Block a user