From 64b2e7d7ecd97fe181e9b909a52196c4b0474747 Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Wed, 23 Oct 2019 13:48:31 -0700 Subject: [PATCH] Use platform independent error code for libzfs_run_process_impl Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Signed-off-by: Matt Macy Closes #9493 --- lib/libzfs/libzfs_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libzfs/libzfs_util.c b/lib/libzfs/libzfs_util.c index ae66db39a4..4a545a0274 100644 --- a/lib/libzfs/libzfs_util.c +++ b/lib/libzfs/libzfs_util.c @@ -748,7 +748,7 @@ libzfs_run_process_impl(const char *path, char *argv[], char *env[], int flags, * reading stdout. */ if ((lines != NULL) && pipe(link) == -1) - return (-ESTRPIPE); + return (-EPIPE); pid = vfork(); if (pid == 0) {