diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-07-25 10:19:12 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-07-25 10:19:12 +0000 |
commit | 4b7138ae3aea4c0c65ded319d8d7bb4f1eae6fdc (patch) | |
tree | 6ee14a4938f8737a290e94f3f94ec00b91087955 | |
parent | f7d9145ebb7ecca3cdd9b71c388755b07712a9fe (diff) | |
download | mdevd-4b7138ae3aea4c0c65ded319d8d7bb4f1eae6fdc.tar.xz |
Bugfix: don't allow EINTR in the main loop
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/mdevd/mdevd.c | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -7,3 +7,4 @@ Thanks to: Johannes Nixdorf <mixi@shadowice.org> Olivier Brunel <jjk@jjacky.com> Guillermo <gdiazhartusch@gmail.com> + Frédéric Aidouni <fred@aidounix.com> @@ -3,6 +3,7 @@ Changelog for mdevd. In 0.1.0.2 ---------- + - Bugfixes. - Adaptation to skalibs-2.7.0.0. diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c index 68d68d4..3784f9a 100644 --- a/src/mdevd/mdevd.c +++ b/src/mdevd/mdevd.c @@ -1085,7 +1085,7 @@ int main (int argc, char const *const *argv) while (pid || cont == 2) { - if (iopause(x, 1 + (!pid && cont == 2), 0, 0) < 0) strerr_diefu1sys(111, "iopause") ; + if (iopause_stamp(x, 1 + (!pid && cont == 2), 0, 0) < 0) strerr_diefu1sys(111, "iopause") ; if (x[0].revents & IOPAUSE_READ) handle_signals() ; if (!pid && cont == 2 && x[1].revents & IOPAUSE_READ) |