Changeset 659 for trunk/server/source3/nmbd/asyncdns.c
- Timestamp:
- Nov 9, 2011, 6:32:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/nmbd/asyncdns.c
r454 r659 20 20 #include "includes.h" 21 21 22 #ifdef __OS2__ 23 #define pipe(A) os2_socketpair(A) 24 #endif 25 22 26 /*************************************************************************** 23 27 Add a DNS result to the name cache. … … 141 145 CatchChild(); 142 146 143 #ifdef __OS2__ // cant use pipes here, because select() from innotek lib does work only for sockets.144 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd1) < 0)145 {146 DEBUG(0,("can't create asyncdns socketpair1 %d\n", errno));147 return;148 }149 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd2) < 0)150 {151 DEBUG(0,("can't create asyncdns socketpair2 %d\n", errno));152 close(fd1[0]);153 close(fd1[1]);154 return;155 }156 DEBUG(9,("!!!!!!PIPES %d %d %d %d\n", fd1[0], fd1[1], fd2[0], fd2[1]));157 #else158 147 if (pipe(fd1) || pipe(fd2)) { 159 148 DEBUG(0,("can't create asyncdns pipes\n")); 160 149 return; 161 150 } 162 #endif163 151 164 152 child_pid = sys_fork();
Note:
See TracChangeset
for help on using the changeset viewer.