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

syscall: use pipe2 on GNU/Linux for O_CLOEXEC #2656

Closed
ianlancetaylor opened this issue Jan 4, 2012 · 5 comments
Closed

syscall: use pipe2 on GNU/Linux for O_CLOEXEC #2656

ianlancetaylor opened this issue Jan 4, 2012 · 5 comments

Comments

@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jan 4, 2012

On GNU/Linux os.Pipe should use the pipe2 system call when available, passing in
O_CLOEXEC.  pipe2 is new as of Linux kernel version 2.6.27.  This can avoid a call to
syscall.ForkLock.RLock.  Also should use pipe2 in syscall.ForkExec.
@rsc
Copy link
Contributor

@rsc rsc commented Sep 12, 2012

Comment 2:

Labels changed: added go1.1.

@rsc
Copy link
Contributor

@rsc rsc commented Dec 10, 2012

Comment 3:

Labels changed: added size-m.

@rsc
Copy link
Contributor

@rsc rsc commented Dec 10, 2012

Comment 4:

Labels changed: added suggested.

@ianlancetaylor
Copy link
Contributor Author

@ianlancetaylor ianlancetaylor commented Jan 11, 2013

Comment 5:

This issue was closed by revision e32d115.

Status changed to Fixed.

@ianlancetaylor
Copy link
Contributor Author

@ianlancetaylor ianlancetaylor commented Jan 11, 2013

Comment 6:

This issue was updated by revision 98259b9.

R=golang-dev, iant, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/7065063
Committer: Ian Lance Taylor 
@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.