Bug #2136 ยป 0001-linux_socketpair-Free-socketpair-file-descriptors-if.patch
| sys/emulation/linux/linux_socket.c | ||
|---|---|---|
|
error = kern_socketpair(domain, linux_args.type, linux_args.protocol,
|
||
|
sockv);
|
||
|
if (error == 0)
|
||
|
if (error == 0) {
|
||
|
error = copyout(sockv, linux_args.rsv, sizeof(sockv));
|
||
|
|
||
|
if (error != 0) {
|
||
|
kern_close(sockv[0]);
|
||
|
kern_close(sockv[1]);
|
||
|
}
|
||
|
}
|
||
|
return(error);
|
||
|
}
|
||