-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the problem of printing "Terminated" in compat.sh under Ubuntu-22.04 #6917
Fix the problem of printing "Terminated" in compat.sh under Ubuntu-22.04 #6917
Conversation
Under Ubuntu-22.04, wait command prints out Terminated message if the process has been killed by kill command. This messes up the output in compat.sh Signed-off-by: Yanray Wang <[email protected]>
Under Ubuntu-22.04, wait command prints out Terminated message. Therefore server process is handled with identical ways like other processes in compat.sh. In addition, PROCESS_ID is renamed as SRV_PID to improve code readability. Signed-off-by: Yanray Wang <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Needs a backport to 2.28 (done).
# For Ubuntu 22.04, `Terminated` message is outputed by wait command. | ||
# To remove it from stdout, redirect stdout/stderr to SRV_OUT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment applies only to wait
, not to kill
.
We get an error message from kill
if the process has already crashes. Hiding it makes the output a little prettier, and the information is in the log file which we need to look at anyway, so I'm ok with that.
Description
Fix: #6658
Gatekeeper checklist