diff options
author | Matthew Macy <[email protected]> | 2019-10-23 13:48:31 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-10-23 13:48:31 -0700 |
commit | 64b2e7d7ecd97fe181e9b909a52196c4b0474747 (patch) | |
tree | 227fb2796efb872ab125cdf36a1492ec9453637e | |
parent | 685abd595cf8e058cc7233d6e4f1ffc2dce88695 (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
-rw-r--r-- | lib/libzfs/libzfs_util.c | 2 |
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) { |