MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / killProcess

Method killProcess

src/plugins/terminal/www/Executor.js:210–214  ·  view source on GitHub ↗

* Forcefully kills a process by its native PID. * * @param {number} pid - Native process ID to kill. * @returns {Promise } Resolves when the process is terminated.

(pid)

Source from the content-addressed store, hash-verified

208 * @returns {Promise<string>} Resolves when the process is terminated.
209 */
210 killProcess(pid) {
211 return new Promise((resolve, reject) => {
212 exec(resolve, reject, this.ExecutorType, "killProcess", [pid]);
213 });
214 }
215
216 /**
217 * Stops the executor service completely.

Callers 1

Calls 1

execFunction · 0.50

Tested by

no test coverage detected