Lines Matching refs:pid
17 const pid = Number(results); constant
18 debug(`pid: ${pid} for port: ${port}`);
19 return pid;
37 function getProcessCommand(pid: number, procDirectory: string): string {
43 return execSync(`ps -o command -p ${pid} | sed -n 2p`, defaultOptions).replace(/\n$/, '').trim();
57 pid: number;
64 const pid = getPID(port); constant
65 if (!pid) {
71 const directory = getDirectoryOfProcessById(pid);
73 const command = getProcessCommand(pid, directory);
75 return { pid, directory, command };