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:
parent
685abd595c
commit
64b2e7d7ec
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue