Use platform independent error code for libzfs_run_process_impl

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9493
This commit is contained in:
Matthew Macy 2019-10-23 13:48:31 -07:00 committed by Brian Behlendorf
parent 685abd595c
commit 64b2e7d7ec
1 changed files with 1 additions and 1 deletions

View File

@ -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) {