Diffstat (limited to 'noncore/net/mail/libetpanstuff/mailstream_socket.patch') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libetpanstuff/mailstream_socket.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/noncore/net/mail/libetpanstuff/mailstream_socket.patch b/noncore/net/mail/libetpanstuff/mailstream_socket.patch deleted file mode 100644 index 10c8fa3..0000000 --- a/noncore/net/mail/libetpanstuff/mailstream_socket.patch +++ b/dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | Index: tools/mailstream_socket.c | ||
2 | =================================================================== | ||
3 | RCS file: /cvsroot/libetpan/libetpan/tools/mailstream_socket.c,v | ||
4 | retrieving revision 1.13 | ||
5 | diff -u -d -r1.13 mailstream_socket.c | ||
6 | --- tools/mailstream_socket.c 2 Mar 2004 23:54:17 -00001.13 | ||
7 | +++ tools/mailstream_socket.c11 Mar 2004 12:30:02 -0000 | ||
8 | @@ -44,6 +44,7 @@ | ||
9 | */ | ||
10 | #include <sys/time.h> | ||
11 | #include <sys/types.h> | ||
12 | +#include <sys/socket.h> | ||
13 | #include <unistd.h> | ||
14 | #include <sys/select.h> | ||
15 | |||
16 | @@ -176,8 +177,8 @@ | ||
17 | if (!FD_ISSET(socket_data->fd, &fds_read)) | ||
18 | return 0; | ||
19 | } | ||
20 | - | ||
21 | - return read(socket_data->fd, buf, count); | ||
22 | + | ||
23 | + return recv(socket_data->fd,buf,count,MSG_NOSIGNAL); | ||
24 | } | ||
25 | |||
26 | static ssize_t mailstream_low_socket_write(mailstream_low * s, | ||
27 | @@ -207,8 +208,7 @@ | ||
28 | if (!FD_ISSET(socket_data->fd, &fds_write)) | ||
29 | return 0; | ||
30 | } | ||
31 | - | ||
32 | - return write(socket_data->fd, buf, count); | ||
33 | + return send(socket_data->fd,buf,count,MSG_NOSIGNAL); | ||
34 | } | ||
35 | |||
36 | |||