Parcourir la source

[1428] Return stored exit code, not 0 every time

Piggybacking tiny fix of #213
Michal 'vorner' Vaner il y a 13 ans
Parent
commit
82fdeb65eb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/bin/bind10/bind10_src.py.in

+ 1 - 1
src/bin/bind10/bind10_src.py.in

@@ -1095,7 +1095,7 @@ def main():
         unlink_pid_file(options.pid_file)
         if boss_of_bind is not None:
             boss_of_bind.remove_socket_srv()
-    sys.exit(0)
+    sys.exit(boss_of_bind.exitcode)
 
 if __name__ == "__main__":
     main()