[PATCH 1/2] Do not try to kill unexisting process
Vratislav Podzimek
vpodzime at redhat.com
Mon Nov 4 09:03:28 UTC 2013
It only generates confusing log messages if we do.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
firstboot-windowmanager | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/firstboot-windowmanager b/firstboot-windowmanager
index ab79a4e..814b8df 100755
--- a/firstboot-windowmanager
+++ b/firstboot-windowmanager
@@ -22,7 +22,7 @@ for WM in ${WMS[@]}; do
res=$?
# stop window manager
- kill $pid
+ ps -p $pid >/dev/null && kill $pid
# return result
exit $res
--
1.7.11.7
More information about the anaconda-patches
mailing list