minissdp.c: try again write after EINTR in SubmitServicesToMiniSSDPD()
This commit is contained in:
parent
34d0954718
commit
c492b6f56f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue