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:
parent
2583221117
commit
fc9a081250
@ -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)
|
static JSValue _taskstub_kill(JSContext* context, JSValueConst this_val, int argc, JSValueConst* argv)
|
||||||
{
|
{
|
||||||
tf_taskstub_t* stub = JS_GetOpaque(this_val, _classId);
|
tf_taskstub_t* stub = JS_GetOpaque(this_val, _classId);
|
||||||
|
if (!tf_task_get_one_proc(stub->_owner))
|
||||||
|
{
|
||||||
uv_process_kill(&stub->_process, SIGTERM);
|
uv_process_kill(&stub->_process, SIGTERM);
|
||||||
|
}
|
||||||
return JS_UNDEFINED;
|
return JS_UNDEFINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user