VirtualBox

Changeset 45087 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 19, 2013 11:10:36 AM (12 years ago)
Author:
vboxsync
Message:

setsockopt(..,SO_NOSIGPIPE,..), it's supposed that instead of SIG_PIPE, socket functions will return EPIPE (not tested).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/misc.c

    r44528 r45087  
    9999    opt = fcntl(fd, F_GETFL, 0);
    100100    opt |= O_NONBLOCK;
     101
     102
    101103    fcntl(fd, F_SETFL, opt);
    102104# endif
     105#ifndef RT_OS_WINDOWS
     106    setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(int));
     107#ednif
    103108}
    104109
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette