Merge pull request #14265 from alaviss/quickfix

nativesockets: add missing inheritable pass-through
This commit is contained in:
Andreas Rumpf 2020-05-08 17:33:38 +02:00 • committed by GitHub
commit ce16115e79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -231,7 +231,7 @@ proc createNativeSocket*(domain: Domain = AF_INET,
## ##
## `inheritable` decides if the resulting SocketHandle can be inherited ## `inheritable` decides if the resulting SocketHandle can be inherited
## by child processes. ## by child processes.
createNativeSocket(toInt(domain), toInt(sockType), toInt(protocol)) createNativeSocket(toInt(domain), toInt(sockType), toInt(protocol), inheritable)
proc newNativeSocket*(domain: Domain = AF_INET, proc newNativeSocket*(domain: Domain = AF_INET,
sockType: SockType = SOCK_STREAM, sockType: SockType = SOCK_STREAM,