summaryrefslogtreecommitdiff
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 59a9102..5928569 100644
--- a/miscutils/microcom.c
+++ b/miscutils/microcom.c
@@ -105,8 +105,7 @@ int microcom_main(int argc, char **argv)
pfd[1].events = POLLIN;
while (1) {
int i;
- while (-1 == poll(pfd, 2, -1) && EINTR == errno)
- continue;
+ safe_poll(pfd, 2, -1);
for (i = 0; i < 2; ++i) {
if (pfd[i].revents & POLLIN) {
len = read(pfd[i].fd, bb_common_bufsiz1, COMMON_BUFSIZE);