don't get sigpipe on send

Original commit message from CVS:
don't get sigpipe on send
This commit is contained in:
Thomas Vander Stichele 2004-06-03 15:34:07 +00:00
parent 0c922cc90d
commit b5580efd05
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2004-06-03 Thomas Vander Stichele <thomas (at) apestaart (dot) org>
* gst/tcp/gsttcp.c: (gst_tcp_socket_write):
don't get a signal for EPIPE on socket writes
(somebody check if this works on other platforms)
2004-06-02 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/alsa/gstalsaclock.c: (gst_alsa_clock_get_type):

View file

@ -84,8 +84,8 @@ gst_tcp_socket_write (int socket, const void *buf, size_t count)
size_t bytes_written = 0;
while (bytes_written < count) {
ssize_t wrote = write (socket, buf + bytes_written,
count - bytes_written);
ssize_t wrote = send (socket, buf + bytes_written,
count - bytes_written, MSG_NOSIGNAL);
if (wrote <= 0) {
return bytes_written;