aboutsummaryrefslogtreecommitdiff
path: root/miscutils/microcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/microcom.c')
-rw-r--r--miscutils/microcom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/microcom.c b/miscutils/microcom.c
index 59a91024e..5928569d5 100644
--- a/miscutils/microcom.c
+++ b/miscutils/microcom.c
@@ -105,8 +105,7 @@ int microcom_main(int argc, char **argv)
105 pfd[1].events = POLLIN; 105 pfd[1].events = POLLIN;
106 while (1) { 106 while (1) {
107 int i; 107 int i;
108 while (-1 == poll(pfd, 2, -1) && EINTR == errno) 108 safe_poll(pfd, 2, -1);
109 continue;
110 for (i = 0; i < 2; ++i) { 109 for (i = 0; i < 2; ++i) {
111 if (pfd[i].revents & POLLIN) { 110 if (pfd[i].revents & POLLIN) {
112 len = read(pfd[i].fd, bb_common_bufsiz1, COMMON_BUFSIZE); 111 len = read(pfd[i].fd, bb_common_bufsiz1, COMMON_BUFSIZE);