[sulfur] if exit status is > 255, pass it through the mod operator (this fixes Sulfur respawns with kdesu)

This commit is contained in:
Fabio Erculiani
2011-11-23 14:50:15 +01:00
parent d97bc58346
commit ae48fea5a9

View File

@@ -74,5 +74,8 @@ while rc in (99, 98):
rc = os.system(sulfur_path)
else:
rc = os.system(su_cmd)
if rc > 255:
# kdesu is idiotic
rc = rc % 255
raise SystemExit(rc)