summaryrefslogtreecommitdiffstats
path: root/libmount/src/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src/lock.c')
-rw-r--r--libmount/src/lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmount/src/lock.c b/libmount/src/lock.c
index d9b6f5939..734757d81 100644
--- a/libmount/src/lock.c
+++ b/libmount/src/lock.c
@@ -650,7 +650,7 @@ int test_lock(struct libmnt_test *ts, int argc, char *argv[])
if (synctime && synctime - tv.tv_sec > 1) {
usecs = ((synctime - tv.tv_sec) * 1000000UL) -
(1000000UL - tv.tv_usec);
- usleep(usecs);
+ xusleep(usecs);
}
}
@@ -676,7 +676,7 @@ int test_lock(struct libmnt_test *ts, int argc, char *argv[])
* concurrent processes happy.
*/
if (synctime)
- usleep(25000);
+ xusleep(25000);
}
return 0;