aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-10-23 13:48:31 -0700
committerBrian Behlendorf <[email protected]>2019-10-23 13:48:31 -0700
commit64b2e7d7ecd97fe181e9b909a52196c4b0474747 (patch)
tree227fb2796efb872ab125cdf36a1492ec9453637e /lib
parent685abd595cf8e058cc7233d6e4f1ffc2dce88695 (diff)
Use platform independent error code for libzfs_run_process_impl
Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #9493
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/libzfs_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_util.c b/lib/libzfs/libzfs_util.c
index ae66db39a..4a545a027 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) {