mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
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
Block a user