diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2016-01-03 13:43:45 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2016-01-03 13:43:45 +0100 |
commit | f1bf60bf249f06d8f38ee2a3952de659141bf330 (patch) | |
tree | 52bebadfa3d54194eed13138067f3f5fd684e777 /extra/restart-radharc | |
parent | add restart-radharc script (diff) | |
download | radharc-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-x | extra/restart-radharc | 5 |
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 |