aboutsummaryrefslogtreecommitdiff
path: root/src/fstabinfo/fstabinfo.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-01-31 05:33:15 +0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2023-04-24 19:18:18 -0500
commit910e3e2a0ebc13e98554831423e21112026a82be (patch)
tree1fcdd5b2482a43c9a2c33e5010a190f2e0deff7c /src/fstabinfo/fstabinfo.c
parent5f04dcc951c51b33ed8fabe50c9d3284944b5609 (diff)
fstabinfo: deal with EINTR in waitpid call
Diffstat (limited to 'src/fstabinfo/fstabinfo.c')
-rw-r--r--src/fstabinfo/fstabinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fstabinfo/fstabinfo.c b/src/fstabinfo/fstabinfo.c
index 09cf5977..43ee822c 100644
--- a/src/fstabinfo/fstabinfo.c
+++ b/src/fstabinfo/fstabinfo.c
@@ -143,7 +143,7 @@ do_mount(struct ENT *ent, bool remount)
err = posix_spawnp(&pid, argv[0], NULL, NULL, argv, environ);
if (err)
eerrorx("%s: posix_spawnp: %s", applet, strerror(err));
- waitpid(pid, &status, 0);
+ while (waitpid(pid, &status, 0) < 0 && errno == EINTR);
if (WIFEXITED(status))
return WEXITSTATUS(status);
else