aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zed/zed_file.h
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-04-02 21:31:23 +0200
committerBrian Behlendorf <[email protected]>2021-04-07 14:52:30 -0700
commit54f6daea7ae060763b4b4d3cdf1218a81102980c (patch)
treefc44d8752272da5c335c013bfdc56d095dcbead1 /cmd/zed/zed_file.h
parent3d62acf0adbceadeac472db22619a389027ec4cf (diff)
zed: replace zed_file_write_n() with write(2), purge it
We set SA_RESTART early on, which will prevent EINTRs (indeed, to the point of needing to clear it in the reaper, since it interferes with pause(2)), which is the only error zed_file_write_n() actually handled (plus, the pid write is no bigger than 12 bytes anyway) Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #11834
Diffstat (limited to 'cmd/zed/zed_file.h')
-rw-r--r--cmd/zed/zed_file.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/zed/zed_file.h b/cmd/zed/zed_file.h
index 28473a545..5cb5e8804 100644
--- a/cmd/zed/zed_file.h
+++ b/cmd/zed/zed_file.h
@@ -18,8 +18,6 @@
#include <sys/types.h>
#include <unistd.h>
-ssize_t zed_file_write_n(int fd, void *buf, size_t n);
-
int zed_file_lock(int fd);
int zed_file_unlock(int fd);