diff --git a/lib/libzfs/libzfs_util.c b/lib/libzfs/libzfs_util.c index 57498ca3c..6abf21ac3 100644 --- a/lib/libzfs/libzfs_util.c +++ b/lib/libzfs/libzfs_util.c @@ -891,7 +891,7 @@ libzfs_run_process_impl(const char *path, char *argv[], char *env[], int flags, if (lines != NULL && pipe2(link, O_NONBLOCK | O_CLOEXEC) == -1) return (-EPIPE); - pid = vfork(); + pid = fork(); if (pid == 0) { /* Child process */ devnull_fd = open("/dev/null", O_WRONLY | O_CLOEXEC); diff --git a/tests/zfs-tests/cmd/xattrtest/xattrtest.c b/tests/zfs-tests/cmd/xattrtest/xattrtest.c index 8c4cb8895..0b68126c0 100644 --- a/tests/zfs-tests/cmd/xattrtest/xattrtest.c +++ b/tests/zfs-tests/cmd/xattrtest/xattrtest.c @@ -262,7 +262,7 @@ run_process(const char *path, char *argv[]) pid_t pid; int rc, devnull_fd; - pid = vfork(); + pid = fork(); if (pid == 0) { devnull_fd = open("/dev/null", O_WRONLY);