aboutsummaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-03 13:43:45 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-03 13:43:45 +0100
commitf1bf60bf249f06d8f38ee2a3952de659141bf330 (patch)
tree52bebadfa3d54194eed13138067f3f5fd684e777 /extra
parentadd restart-radharc script (diff)
downloadradharc-f1bf60bf249f06d8f38ee2a3952de659141bf330.tar.gz
radharc-f1bf60bf249f06d8f38ee2a3952de659141bf330.tar.bz2
radharc-f1bf60bf249f06d8f38ee2a3952de659141bf330.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rwxr-xr-xextra/restart-radharc5
1 files changed, 3 insertions, 2 deletions
diff --git a/extra/restart-radharc b/extra/restart-radharc
index 49b40f2..d652deb 100755
--- a/extra/restart-radharc
+++ b/extra/restart-radharc
@@ -34,11 +34,12 @@ done
# Restart all instances of radharc.
for pid in pgrep -x radharc; do
# Open environ and cmdline and be sure that they we successfully opened.
- exec 3<proc/"$pid"/environ
+ # It is possible that the process has exited, or is not yours.
+ exec 3<proc/"$pid"/environ 2>/dev/null
if [ ! $? = 0 ]; then
continue
fi
- exec 4<proc/"$pid"/cmdline
+ exec 4<proc/"$pid"/cmdline 2>/dev/null
if [ ! $? = 0 ]; then
continue
fi