mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
gst/tcp/gstmultifdsink.c: Most systems don't have MSG_NOSIGNAL.
Original commit message from CVS: * gst/tcp/gstmultifdsink.c: (gst_multifdsink_handle_client_write): Most systems don't have MSG_NOSIGNAL.
This commit is contained in:
parent
0e71d88f2f
commit
396ac9c403
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-07-02 David Schleef <ds@schleef.org>
|
||||
|
||||
* gst/tcp/gstmultifdsink.c: (gst_multifdsink_handle_client_write):
|
||||
Most systems don't have MSG_NOSIGNAL.
|
||||
|
||||
2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* Makefile.am:
|
||||
|
|
|
@ -560,9 +560,13 @@ gst_multifdsink_handle_client_write (GstMultiFdSink * sink,
|
|||
maxsize = GST_BUFFER_SIZE (head) - client->bufoffset;
|
||||
|
||||
/* try to write the complete buffer */
|
||||
#ifdef MSG_NOSIGNAL
|
||||
#define FLAGS MSG_NOSIGNAL
|
||||
#else
|
||||
#define FLAGS 0
|
||||
#endif
|
||||
wrote =
|
||||
send (fd, GST_BUFFER_DATA (head) + client->bufoffset, maxsize,
|
||||
MSG_NOSIGNAL);
|
||||
send (fd, GST_BUFFER_DATA (head) + client->bufoffset, maxsize, FLAGS);
|
||||
if (wrote < 0) {
|
||||
/* hmm error.. */
|
||||
if (errno == EAGAIN) {
|
||||
|
|
Loading…
Reference in a new issue