amalgm 0.1.60 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/process-cleanup.js +2 -1
- package/package.json +1 -1
package/lib/process-cleanup.js
CHANGED
|
@@ -133,7 +133,8 @@ function listPsProcesses() {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
function listProcesses() {
|
|
136
|
-
const
|
|
136
|
+
const psProcesses = listPsProcesses();
|
|
137
|
+
const processes = psProcesses.length > 0 ? psProcesses : (listProcProcesses() || []);
|
|
137
138
|
const commandByPid = new Map(processes.map((item) => [item.pid, item.command]));
|
|
138
139
|
return processes.map((item) => ({
|
|
139
140
|
...item,
|