Fix output redirection in PROCESS_STATE_CMD

master
Orsiris de Jong 2026-10-28 16:15:43 +01:00 committed by GitHub
parent aad817a01b
commit c3f77008b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2239,7 +2239,7 @@ function InitLocalOSDependingSettings {
PROCESS_STATE_CMD="echo none"
DF_CMD="df"
else
PROCESS_STATE_CMD='ps -p$pid -o state= 2 > /dev/null'
PROCESS_STATE_CMD='ps -p$pid -o state= 2> /dev/null'
# CentOS 5 needs -P for one line output
DF_CMD="df -P"
fi