Changeset 659
- Timestamp:
- Nov 9, 2011, 6:32:33 PM (14 years ago)
- Location:
- trunk/server/source3
- Files:
-
- 3 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(); -
trunk/server/source3/printing/print_cups.c
r599 r659 31 31 #include <cups/language.h> 32 32 33 #ifdef __OS2__ 34 #define pipe(A) os2_socketpair(A) 35 #endif 36 33 37 static SIG_ATOMIC_T gotalarm; 34 38 … … 392 396 DEBUG(5,("cups_pcap_load_async: asynchronously loading cups printers\n")); 393 397 394 #ifndef __OS2__395 398 if (pipe(fds) == -1) { 396 #else // on OS2 we have no select() on pipes, so we use socketpair() instead397 if (socketpair(AF_UNIX, SOCK_STREAM,0, fds) == -1) {398 #endif399 399 return false; 400 400 } -
trunk/server/source3/printing/printing.c
r480 r659 22 22 #include "includes.h" 23 23 #include "printing.h" 24 25 #ifdef __OS2__ 26 #define pipe(A) os2_socketpair(A) 27 #endif 24 28 25 29 extern struct current_user current_user; … … 1412 1416 DEBUG(3,("start_background_queue: Starting background LPQ thread\n")); 1413 1417 1414 #ifndef __OS2__1415 1418 if (pipe(pause_pipe) == -1) { 1416 #else // on OS2 we have no select() on pipes, so we use socketpair() instead1417 if (socketpair(AF_UNIX, SOCK_STREAM,0, pause_pipe) < 0) {1418 #endif1419 1419 DEBUG(5,("start_background_queue: cannot create pipe. %s\n", strerror(errno) )); 1420 1420 exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.