Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typo in comment
Co-authored-by: Mike McCready <[email protected]>
  • Loading branch information
BePo65 and MikeMcC399 authored Dec 13, 2024
commit 662b764fe4a1336494d8e967f158ec958c96fad6
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = function childrenOfPid(pid, callback) {

let processLister;
if (process.platform === 'win32') {
// WMIC is deprecated sine 2016; using powershell 5.1
// WMIC is deprecated since 2016; using powershell 5.1
processLister = spawn('powershell.exe',['Get-WmiObject -Class Win32_Process | Select-Object -Property Name,ProcessId,ParentProcessId,Status | Format-Table']);
} else {
processLister = spawn('ps', ['-A', '-o', 'ppid,pid,stat,comm']);
Expand Down