mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 11:40:25 +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.
|
* reading stdout.
|
||||||
*/
|
*/
|
||||||
if ((lines != NULL) && pipe(link) == -1)
|
if ((lines != NULL) && pipe(link) == -1)
|
||||||
return (-ESTRPIPE);
|
return (-EPIPE);
|
||||||
|
|
||||||
pid = vfork();
|
pid = vfork();
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user