... | ... |
@@ -81,9 +81,11 @@ int mexec_scan_cmd(int fd, char *buff) |
81 | 81 |
if(FD_ISSET(fd,&fds)){ |
82 | 82 |
r = write(fd, cmd, size); |
83 | 83 |
if(r == -1){ |
84 |
- lprintf(0, "%s: commend write error! %s", |
|
85 |
- __func__, |
|
86 |
- buff); |
|
84 |
+ if(errno == EINTR){ |
|
85 |
+ continue; |
|
86 |
+ } |
|
87 |
+ lprintf(0, "%s: commend write error (%s) %s", |
|
88 |
+ __func__, strerror(errno), buff); |
|
87 | 89 |
return(-1); |
88 | 90 |
} |
89 | 91 |
size -= r; |