minissdp.c: try again write after EINTR in SubmitServicesToMiniSSDPD()

This commit is contained in:
Thomas Bernard 2014-02-26 02:02:34 +01:00
parent 34d0954718
commit c492b6f56f
1 changed files with 2 additions and 0 deletions

View File

@ -1126,6 +1126,8 @@ SubmitServicesToMiniSSDPD(const char * host, unsigned short port) {
while(n > 0) {
l = write(s, p, n);
if (l < 0) {
if(errno == EINTR)
continue;
syslog(LOG_ERR, "write(): %m");
close(s);
return -1;