summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-07-25 10:19:12 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-07-25 10:19:12 +0000
commit4b7138ae3aea4c0c65ded319d8d7bb4f1eae6fdc (patch)
tree6ee14a4938f8737a290e94f3f94ec00b91087955
parentf7d9145ebb7ecca3cdd9b71c388755b07712a9fe (diff)
downloadmdevd-4b7138ae3aea4c0c65ded319d8d7bb4f1eae6fdc.tar.xz
Bugfix: don't allow EINTR in the main loop
-rw-r--r--AUTHORS1
-rw-r--r--NEWS1
-rw-r--r--src/mdevd/mdevd.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 61fb22a..d847a36 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -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>
diff --git a/NEWS b/NEWS
index be4e8c8..48621e2 100644
--- a/NEWS
+++ b/NEWS
@@ -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)