summaryrefslogtreecommitdiffstats
path: root/src/bfstd.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-10-31 13:25:04 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-31 13:25:30 -0400
commit8aaf670c13ade259f7bcdd50332968c1c6290b34 (patch)
tree8794f55c7777f560c37ebcebb78a4a6be30d92f1 /src/bfstd.h
parent06ee53d5b1fc58073aaa3d57f6073256d13502f2 (diff)
downloadbfs-8aaf670c13ade259f7bcdd50332968c1c6290b34.tar.xz
bfstd: New xwaitpid() wrapper
Diffstat (limited to 'src/bfstd.h')
-rw-r--r--src/bfstd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bfstd.h b/src/bfstd.h
index db558c6..4e36aca 100644
--- a/src/bfstd.h
+++ b/src/bfstd.h
@@ -213,6 +213,13 @@ int xminor(dev_t dev);
# define st_birthtim st_birthtimespec
#endif
+// #include <sys/wait.h>
+
+/**
+ * waitpid() wrapper that handles EINTR.
+ */
+pid_t xwaitpid(pid_t pid, int *status, int flags);
+
// #include <unistd.h>
/**