Skip to content
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

Conversation

yanrayw
Copy link

@yanrayw yanrayw commented Jan 13, 2023

Description

Fix: #6658

Gatekeeper checklist

Yanray Wang added 2 commits January 13, 2023 11:54
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 <yanray.wang@arm.com>
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 <yanray.wang@arm.com>
@yanrayw yanrayw added enhancement needs-review Every commit must be reviewed by at least two team members, component-tls needs-ci Needs to pass CI tests needs-reviewer This PR needs someone to pick it up for review size-s Estimated task size: small (~2d) priority-medium Medium priority - this can be reviewed as time permits labels Jan 13, 2023
@yanrayw yanrayw self-assigned this Jan 13, 2023
@yanrayw yanrayw changed the title Fix the problems of printing "Terminated" in compat.sh under Ubuntu-22.04 Fix the problem of printing "Terminated" in compat.sh under Ubuntu-22.04 Jan 13, 2023
Copy link
Contributor

@lpy4105 lpy4105 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@gilles-peskine-arm gilles-peskine-arm left a 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).

Comment on lines +763 to +764
# For Ubuntu 22.04, `Terminated` message is outputed by wait command.
# To remove it from stdout, redirect stdout/stderr to SRV_OUT
Copy link
Contributor

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.

@gilles-peskine-arm gilles-peskine-arm added needs-backports Backports are missing or are pending review and approval. and removed needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review labels Jan 20, 2023
@gilles-peskine-arm gilles-peskine-arm added approved Design and code approved - may be waiting for CI or backports and removed needs-ci Needs to pass CI tests labels Jan 25, 2023
@gilles-peskine-arm gilles-peskine-arm merged commit 81505e4 into Mbed-TLS:development Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Design and code approved - may be waiting for CI or backports component-tls enhancement needs-backports Backports are missing or are pending review and approval. priority-medium Medium priority - this can be reviewed as time permits size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ssl-opt.sh and compat.sh print "Terminated" on Ubuntu 22.04
3 participants