From: serassio <> Date: Mon, 4 Sep 2006 01:28:10 +0000 (+0000) Subject: Windows port: merged Windows native IPC support X-Git-Tag: SQUID_3_0_PRE5~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=812dc4b8021f1acde97927648692d880ca79b8f0;p=thirdparty%2Fsquid.git Windows port: merged Windows native IPC support --- diff --git a/src/ipc.cc b/src/ipc.cc index 87dcec4589..5e921a957d 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -1,6 +1,6 @@ /* - * $Id: ipc.cc,v 1.43 2006/09/03 17:19:34 serassio Exp $ + * $Id: ipc.cc,v 1.44 2006/09/03 19:28:10 serassio Exp $ * * DEBUG: section 54 Interprocess Communication * AUTHOR: Duane Wessels @@ -73,8 +73,8 @@ PutEnvironment() #endif } -int -ipcCreate(int type, const char *prog, const char *const args[], const char *name, int *rfd, int *wfd) +pid_t +ipcCreate(int type, const char *prog, const char *const args[], const char *name, int *rfd, int *wfd, void **hIpc) { pid_t pid; @@ -101,6 +101,9 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name if (wfd) *wfd = -1; + if (hIpc) + *hIpc = NULL; + if (type == IPC_TCP_SOCKET) { crfd = cwfd = comm_open(SOCK_STREAM, 0,