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

Update dhclient to non-blocking mode #30

Merged
merged 1 commit into from
Feb 25, 2016
Merged

Update dhclient to non-blocking mode #30

merged 1 commit into from
Feb 25, 2016

Conversation

lwindg
Copy link
Contributor

@lwindg lwindg commented Feb 24, 2016

No description provided.

if script:
sh.dhclient("-nw", "-sf", script, iface, _bg=True)
else:
sh.dhclient("-nw", iface, _bg=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we have a timeout here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-nw cause dhclient become a daemon process (nowait). timeout is not required.

Copy link
Contributor

Choose a reason for hiding this comment

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

Daemon should not run with sh, use a service script?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no service for dhclient, did you mean to create a script for dhclient instead of using sh?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, unless dhclient will do technique like fork, fork change its parent pid to 1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't want dhclient to be separated from bundle; killed after bundle be killed is allowed.

imZack added a commit that referenced this pull request Feb 25, 2016
Update dhclient to non-blocking mode
@imZack imZack merged commit 2bd43dc into Sanji-IO:develop Feb 25, 2016
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.

2 participants