aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-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)
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);