Ignore:
Timestamp:
Nov 9, 2011, 6:32:33 PM (14 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: more high mem work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/nmbd/asyncdns.c

    r454 r659  
    2020#include "includes.h"
    2121
     22#ifdef __OS2__
     23#define pipe(A) os2_socketpair(A)
     24#endif
     25
    2226/***************************************************************************
    2327  Add a DNS result to the name cache.
     
    141145        CatchChild();
    142146
    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 #else
    158147        if (pipe(fd1) || pipe(fd2)) {
    159148                DEBUG(0,("can't create asyncdns pipes\n"));
    160149                return;
    161150        }
    162 #endif
    163151
    164152        child_pid = sys_fork();
Note: See TracChangeset for help on using the changeset viewer.