Changeset 464 for trunk/server/source3


Ignore:
Timestamp:
Jun 10, 2010, 12:38:39 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: changed pipe() to socketpair()

Location:
trunk/server/source3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/lib/recvfile.c

    r414 r464  
    174174        }
    175175
     176#ifndef __OS2__
    176177        if ((pipefd[0] == -1) && (pipe(pipefd) == -1)) {
     178#else
     179        if ((pipefd[0] == -1) && (socketpair(AF_UNIX, SOCK_STREAM,0, pipefd) == -1)) {
     180#endif
    177181                try_splice_call = false;
    178182                return default_sys_recvfile(fromfd, tofd, offset, count);
  • trunk/server/source3/printing/print_cups.c

    r429 r464  
    408408        DEBUG(5,("cups_pcap_load_async: asynchronously loading cups printers\n"));
    409409
     410#ifndef __OS2__
    410411        if (pipe(fds) == -1) {
     412#else   // on OS2 we have no select() on pipes, so we use socketpair() instead
     413        if (socketpair(AF_UNIX, SOCK_STREAM,0, fds) == -1) {
     414#endif
    411415                return false;
    412416        }
Note: See TracChangeset for help on using the changeset viewer.