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:
David Schleef 2004-07-02 18:02:15 +00:00
parent 0e71d88f2f
commit 396ac9c403
2 changed files with 11 additions and 2 deletions

View file

@ -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:

View file

@ -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) {