]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr.py
Change os.exit to sys.exit
[deb_pkgs/autorandr.git] / autorandr.py
index 80d61ef87eea574544367e130bdd224086444d7b..535ec31f6005a4a2f6190b5c7c6e52cdc10eb8ef 100755 (executable)
@@ -1111,7 +1111,7 @@ def dispatch_call_to_sessions(argv):
                 os.execl(sys.executable, sys.executable, autorandr_binary, *argv[1:])
             else:
                 os.execl(autorandr_binary, autorandr_binary, *argv[1:])
-            os.exit(1)
+            sys.exit(1)
         os.waitpid(child_pid, 0)
 
     for directory in os.listdir("/proc"):