summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-15 11:28:30 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-01-15 11:28:30 -0500
commitafe07dcba80a2dd047b72db30fcdb32ec2799d00 (patch)
treed541769e28e277604e9ff452f5dd5e97299601e6
parent34c99f99a51c661ab36ae9a148e2ea2f8e09ecc6 (diff)
daemon: don't complain if /proc/${pid} doesn't exist
-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() {