mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
don't get sigpipe on send
Original commit message from CVS: don't get sigpipe on send
This commit is contained in:
parent
0c922cc90d
commit
b5580efd05
2 changed files with 8 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue