Need to find an alternative to uv_process_kill when using one process.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4522 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-10-15 17:43:08 +00:00
parent 2583221117
commit fc9a081250

View File

@ -455,7 +455,10 @@ static JSValue _taskstub_execute(JSContext* context, JSValueConst this_val, int
static JSValue _taskstub_kill(JSContext* context, JSValueConst this_val, int argc, JSValueConst* argv)
{
tf_taskstub_t* stub = JS_GetOpaque(this_val, _classId);
uv_process_kill(&stub->_process, SIGTERM);
if (!tf_task_get_one_proc(stub->_owner))
{
uv_process_kill(&stub->_process, SIGTERM);
}
return JS_UNDEFINED;
}