2015-09-17 16:07 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbproces.c
* In OS2 builds use fGentle parameter of hb_fsProcessClose() to
control if kill signal should be send only to child process or
also to its all descendant processes.
This commit is contained in:
@@ -1008,11 +1008,9 @@ HB_BOOL hb_fsProcessClose( HB_FHANDLE hProcess, HB_BOOL fGentle )
|
||||
{
|
||||
PID pid = ( PID ) hProcess;
|
||||
|
||||
HB_SYMBOL_UNUSED( fGentle );
|
||||
|
||||
if( pid > 0 )
|
||||
{
|
||||
APIRET ret = DosKillProcess( DKP_PROCESS, pid );
|
||||
APIRET ret = DosKillProcess( fGentle ? DKP_PROCESS : DKP_PROCESSTREE, pid );
|
||||
|
||||
fResult = ret == NO_ERROR;
|
||||
hb_fsSetError( ( HB_ERRCODE ) ret );
|
||||
|
||||
Reference in New Issue
Block a user