Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ typedef SSIZE_T ssize_t;
#ifndef MSG_DONTWAIT
#define MSG_DONTWAIT 0
#endif
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif

struct mpd_async {
mpd_socket_t fd;
Expand Down Expand Up @@ -214,7 +217,7 @@ mpd_async_write(struct mpd_async *async)
return true;

nbytes = send(async->fd, mpd_buffer_read(&async->output), size,
MSG_DONTWAIT);
MSG_DONTWAIT | MSG_NOSIGNAL);
if (nbytes < 0) {
/* I/O error */

Expand Down