switch from using the hacked macosx transport dib to the linux one which uses sysv shms. make sure you also have a current kernel before using this version
21 lines
696 B
Plaintext
21 lines
696 B
Plaintext
$OpenBSD: patch-ipc_ipc_channel_posix_cc,v 1.6 2011/10/27 07:59:09 robert Exp $
|
|
--- ipc/ipc_channel_posix.cc.orig Fri Oct 21 10:30:02 2011
|
|
+++ ipc/ipc_channel_posix.cc Wed Oct 26 13:39:46 2011
|
|
@@ -10,6 +10,7 @@
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/stat.h>
|
|
+#include <sys/uio.h>
|
|
#include <sys/un.h>
|
|
|
|
#include <string>
|
|
@@ -930,7 +931,7 @@ bool Channel::ChannelImpl::HasAcceptedConnection() con
|
|
|
|
bool Channel::ChannelImpl::GetClientEuid(uid_t* client_euid) const {
|
|
DCHECK(HasAcceptedConnection());
|
|
-#if defined(OS_MACOSX)
|
|
+#if defined(OS_MACOSX) || defined(OS_OPENBSD)
|
|
uid_t peer_euid;
|
|
gid_t peer_gid;
|
|
if (getpeereid(pipe_, &peer_euid, &peer_gid) != 0) {
|