From: Gunnar Beutner Date: Fri, 29 Jul 2011 08:17:46 +0000 (+0200) Subject: Use /dev/null for stdout/stderr in libzfs_run_process(). X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=3132cb397ad1b60cac548b35ad8bbd4c7183fde4;hp=3132cb397ad1b60cac548b35ad8bbd4c7183fde4;p=zfs.git Use /dev/null for stdout/stderr in libzfs_run_process(). Simply closing the stdout and/or stderr file descriptors for the child process can have bad side effects if for example the child writes to stdout/stderr after open()ing a file. The open() call might have returned the same file descriptor one would usually expect for stdout/stderr (1 and 2), thereby causing mis-directed writes. Signed-off-by: Brian Behlendorf Issue #190 ---