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) {
|
while(n > 0) {
|
||||||
l = write(s, p, n);
|
l = write(s, p, n);
|
||||||
if (l < 0) {
|
if (l < 0) {
|
||||||
|
if(errno == EINTR)
|
||||||
|
continue;
|
||||||
syslog(LOG_ERR, "write(): %m");
|
syslog(LOG_ERR, "write(): %m");
|
||||||
close(s);
|
close(s);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue