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

Better port in use information #369

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jerryleooo
Copy link

No description provided.

Copy link
Contributor

@kokosing kokosing left a comment

Choose a reason for hiding this comment

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

Please take a look at travis failure

@jerryleooo
Copy link
Author

@kokosing Yeah I will check later when I have time

"server start...")
error('Server failed to start on %s. Port %s already in use'
% (env.host, str(portnum)))
if 'command not found' in output:
Copy link
Contributor

Choose a reason for hiding this comment

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

if we set -o pipefail in run(str), we should exercise better control... Or, perhaps, netstat should be run as command and grep as Py-level processing. (with set -o pipefail there is this problem with grep that it reports failure when no line matched, so you'd need | { grep ... || true }...)

@kokosing what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. That is much better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants