diff options
| author | ruki <[email protected]> | 2017-09-14 22:45:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-14 10:31:14 +0800 |
| commit | 9b5dfae7e222ad3cdd293cbc962b6b9dc96590a6 (patch) | |
| tree | a46c647f933c36bfee392dbbad5e707a2e97fcc1 /core/src | |
| parent | b27b6447c072d357db96d17500c73bf9013b8c5c (diff) | |
add github traffic statistics
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/tbox/src/tbox/platform/posix/process.c | 13 | ||||
| -rw-r--r-- | core/src/tbox/src/tbox/platform/windows/process.c | 13 |
2 files changed, 0 insertions, 26 deletions
diff --git a/core/src/tbox/src/tbox/platform/posix/process.c b/core/src/tbox/src/tbox/platform/posix/process.c index e59613777..34d606a27 100644 --- a/core/src/tbox/src/tbox/platform/posix/process.c +++ b/core/src/tbox/src/tbox/platform/posix/process.c @@ -480,19 +480,6 @@ tb_void_t tb_process_exit(tb_process_ref_t self) tb_process_t* process = (tb_process_t*)self; tb_assert_and_check_return(process); - // the process has not exited? - if (process->pid > 0) - { - // trace - tb_trace_e("kill: %ld ..", process->pid); - - // kill it first - tb_process_kill(self); - - // wait it again - tb_process_wait(self, tb_null, -1); - } - #ifdef TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP // close the stdout diff --git a/core/src/tbox/src/tbox/platform/windows/process.c b/core/src/tbox/src/tbox/platform/windows/process.c index c8768c47f..47afed967 100644 --- a/core/src/tbox/src/tbox/platform/windows/process.c +++ b/core/src/tbox/src/tbox/platform/windows/process.c @@ -311,19 +311,6 @@ tb_void_t tb_process_exit(tb_process_ref_t self) tb_process_t* process = (tb_process_t*)self; tb_assert_and_check_return(process); - // the process has not exited? - if (process->pi.hProcess != INVALID_HANDLE_VALUE) - { - // trace - tb_trace_e("kill: %u ..", process->pi.dwProcessId); - - // kill it first - tb_process_kill(self); - - // wait it again - tb_process_wait(self, tb_null, -1); - } - // close thread handle if (process->pi.hThread != INVALID_HANDLE_VALUE) tb_kernel32()->CloseHandle(process->pi.hThread); |
