library: syscall.CloseOnExec
This commit is contained in:
@@ -68,10 +68,7 @@ import (
|
|||||||
var ForkLock sync.RWMutex
|
var ForkLock sync.RWMutex
|
||||||
|
|
||||||
func CloseOnExec(fd int) {
|
func CloseOnExec(fd int) {
|
||||||
/* TODO(xsw):
|
os.Fcntl(c.Int(fd), syscall.F_SETFD, syscall.FD_CLOEXEC)
|
||||||
fcntl(fd, F_SETFD, FD_CLOEXEC)
|
|
||||||
*/
|
|
||||||
panic("todo: syscall.CloseOnExec")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetNonblock(fd int, nonblocking bool) (err error) {
|
func SetNonblock(fd int, nonblocking bool) (err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user