From fc9a08125063dc194c738026c6f03e1181ca3565 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 15 Oct 2023 17:43:08 +0000 Subject: [PATCH] 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 --- src/taskstub.js.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/taskstub.js.c b/src/taskstub.js.c index 752c291d..ef304d31 100644 --- a/src/taskstub.js.c +++ b/src/taskstub.js.c @@ -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; }