mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Make exec node explicitly call SIGTERM for default
This commit is contained in:
		| @@ -40,7 +40,7 @@ module.exports = function(RED) { | ||||
|  | ||||
|         this.on("input", function(msg) { | ||||
|             if (msg.hasOwnProperty("kill")) { | ||||
|                 if (typeof msg.kill !== "string" || msg.kill.length === 0 || !msg.kill.toUpperCase().startsWith("SIG") ) { msg.kill = ""; } | ||||
|                 if (typeof msg.kill !== "string" || msg.kill.length === 0 || !msg.kill.toUpperCase().startsWith("SIG") ) { msg.kill = "SIGTERM"; } | ||||
|                 if (msg.hasOwnProperty("pid")) { | ||||
|                     if (node.activeProcesses.hasOwnProperty(msg.pid) ) { | ||||
|                         node.activeProcesses[msg.pid].kill(msg.kill.toUpperCase()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user