Skip to content

Commit 64b724c

Browse files
committed
FEAT: making at least basic SIGTERM and SIGKILL signals be mapped to Os_Kill on Windows to be compatible with posix version...
So `access-os/set 'pid [32464 15]` will terminate process on all systems.
1 parent f7ed5ef commit 64b724c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/os/win32/host-lib.c

+3
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ static void *Task_Ready;
235235
**
236236
***********************************************************************/
237237
{
238+
if (signal == 9 || signal == 15) { //SIGKILL || SIGTERM
239+
return OS_Kill(pid);
240+
}
238241
return OS_ENA;
239242
}
240243

0 commit comments

Comments
 (0)