22 lines
732 B
TypeScript
22 lines
732 B
TypeScript
/**
|
|
* @param {number} pid process id. Required.
|
|
* @returns boolean true if the given process id is in the local process
|
|
* table. The PID may be paused or a zombie, though.
|
|
*/
|
|
export declare function pidExists(pid: number | undefined): boolean;
|
|
/**
|
|
* Send a signal to the given process id.
|
|
*
|
|
* @export
|
|
* @param pid the process id. Required.
|
|
* @param force if true, and the current user has
|
|
* permissions to send the signal, the pid will be forced to shut down. Defaults to false.
|
|
*/
|
|
export declare function kill(pid: number | undefined, force?: boolean): boolean;
|
|
/**
|
|
* Only used by tests
|
|
*
|
|
* @returns {Promise<number[]>} all the Process IDs in the process table.
|
|
*/
|
|
export declare function pids(): Promise<number[]>;
|