Commit 2d1a921
Use
The previous method used `/proc` to check the running processes,
but it is a Linux-specific solution.
This method uses `ps`, hopefully in a POSIX-compliant way.
Linux: https://man7.org/linux/man-pages/man1/ps.1.html
FreeBSD: https://man.freebsd.org/cgi/man.cgi?ps(1)
OpenBSD: https://man.openbsd.org/ps.1ps to check the running processes.1 parent 0a5530a commit 2d1a921
1 file changed
+10
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 277 | + | |
285 | 278 | | |
286 | 279 | | |
287 | | - | |
288 | | - | |
289 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
290 | 284 | | |
291 | 285 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
314 | 289 | | |
315 | 290 | | |
316 | 291 | | |
317 | | - | |
| 292 | + | |
| 293 | + | |
318 | 294 | | |
319 | 295 | | |
320 | 296 | | |
| |||
0 commit comments