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

exec: Add WaitTimeout #1917

Closed
FlorianUekermann opened this issue Jun 4, 2011 · 4 comments
Closed

exec: Add WaitTimeout #1917

FlorianUekermann opened this issue Jun 4, 2011 · 4 comments

Comments

@FlorianUekermann
Copy link
Contributor

Feature Request:

Add Cmd.Wait() like function in exec with timeout.
Behavior should resemble Wait() as close as possible, but the corresponding process is
killed after the specified time elapsed.

Suggested Prototype:

func (cmd *Cmd) WaitTimeout(ns int64) (os.Error)
@FlorianUekermann
Copy link
Contributor Author

Comment 1:

Changes are more or less trivial I think, and since I needed it today anyway, I uploaded
it and sent review request it to bradfitz.
http://golang.org/cl/4530108

@adg
Copy link
Contributor

adg commented Jun 6, 2011

Comment 2:

Owner changed to @bradfitz.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Jun 7, 2011

Comment 3:

No Timeout methods please.

Status changed to Invalid.

@FlorianUekermann
Copy link
Contributor Author

Comment 4:

I think we all agree now that introducing additional methods is a bad thing to do. If
you object to timeouts in general, you might want to take a look at the CL.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants