daemon: When running external commands, open stdin as /dev/null
authorRichard Jones <rjones@debian5x64.home.annexia.org>
Wed, 4 Nov 2009 15:47:03 +0000 (15:47 +0000)
committerRichard Jones <rjones@debian5x64.home.annexia.org>
Wed, 4 Nov 2009 15:47:03 +0000 (15:47 +0000)
commitdf1af0bbe21e906c11123e66ec470b60e55c9e44
treeed4bb384aec2f391f9678a0ec590207956b6d5bb
parenta3be3a3b877277c1e4b130e1676b9ad307cafa10
daemon: When running external commands, open stdin as /dev/null

Previously when we ran external commands from the daemon, stdin
(ie. fd 0) was closed.  This caused a problem when running the
external hexdump command which seems to break if stdin is closed.

This patch opens stdin on /dev/null.
daemon/guestfsd.c