summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemon.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.sh b/daemon.sh
index 4197fc8..a1ba863 100644
--- a/daemon.sh
+++ b/daemon.sh
@@ -2,7 +2,7 @@
get_ident() {
local pid=$1
- cut -d ' ' -f 22 /proc/$pid/stat
+ cut -d ' ' -f 22 /proc/$pid/stat 2>/dev/null
}
is_running() {