diff options
| author | Alexander Barton <alex@barton.de> | 2024-04-01 21:38:21 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2024-04-05 23:16:07 +0200 |
| commit | 22a8744476dff7763cd94954bd8f96fbdfc0d251 (patch) | |
| tree | cb987bbaaca39b05ffb3547d765a0f5e9f9db608 /src/testsuite/tests.sh | |
| parent | 7e78c293a97239f895b862836c65c4b755abdc52 (diff) | |
| download | ngircd-22a8744476dff7763cd94954bd8f96fbdfc0d251.tar.gz ngircd-22a8744476dff7763cd94954bd8f96fbdfc0d251.zip | |
Test suite: simplify and enhance getpid.sh
- Try to only search for processes of the current user. - Prefer using pgrep (in addition to pidof) when available. - Streamline system overrides. - Get rid of HEAD_FLAGS: all systems so far support "-1". - Use "ps -o pid,comm" as the default, which is POSIX.1. - Use "sort -r" to hopefully get the newest (=highest) PID, which is the case on older systems not using randomized PIDs at least.
Diffstat (limited to 'src/testsuite/tests.sh')
0 files changed, 0 insertions, 0 deletions