Changeset 699 for branches/samba-3.3.x/source/nmbd
- Timestamp:
- Apr 23, 2012, 8:01:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/nmbd/asyncdns.c
r206 r699 17 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 #ifdef __OS2__ 20 #define pipe(A) os2_pipe(A) 21 #endif 19 22 20 23 #include "includes.h" … … 141 144 CatchChild(); 142 145 143 #ifdef __OS2__144 // cant use pipes here, because select() from innotek lib does work only for sockets.145 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd1) < 0)146 {147 DEBUG(0,("can't create asyncdns socketpair1 %d\n", errno));148 return;149 }150 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd2) < 0)151 {152 DEBUG(0,("can't create asyncdns socketpair2 %d\n", errno));153 close(fd1[0]);154 close(fd1[1]);155 return;156 }157 DEBUG(9,("!!!!!!PIPES %d %d %d %d\n", fd1[0], fd1[1], fd2[0], fd2[1]));158 #else159 146 if (pipe(fd1) || pipe(fd2)) { 160 147 DEBUG(0,("can't create asyncdns pipes\n")); 161 148 return; 162 149 } 163 #endif /* __OS2__ */164 150 child_pid = sys_fork(); 165 151
Note:
See TracChangeset
for help on using the changeset viewer.