From c4a0a94e60412cca18e7c3eeecd460f4c95afc22 Mon Sep 17 00:00:00 2001 From: Youngjun Date: Tue, 12 Mar 2024 13:48:28 +0900 Subject: [PATCH] Remove unrecheable code os.execlp() does not return if successful. From the documentation[1]: "These functions all execute a new program, replacing the current process; they do not return". [1] https://docs.python.org/3/library/os.html#os.execlp Change-Id: I03776591f225348ffda5204eddbce24b1c465753 Signed-off-by: Youngjun --- glance/cmd/control.py | 1 - 1 file changed, 1 deletion(-) diff --git a/glance/cmd/control.py b/glance/cmd/control.py index ed783094cf..e2791b7055 100644 --- a/glance/cmd/control.py +++ b/glance/cmd/control.py @@ -173,7 +173,6 @@ def do_start(verb, pid_file, server, args): msg = (_('unable to launch %(serv)s. Got error: %(e)s') % {'serv': server, 'e': e}) sys.exit(msg) - sys.exit(0) else: write_pid_file(pid_file, pid) await_child(pid, await_time)