process: Avoid late failure if /dev/null cannot be opened.
authorBen Pfaff <blp@nicira.com>
Wed, 23 Feb 2011 19:16:07 +0000 (11:16 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Feb 2011 23:14:42 +0000 (15:14 -0800)
commitfe81a2987abeda195f6535cab973b1c753cca4b3
treed1008576b9e5f328a52875007c065bf0b352c6fc
parent0b420b100ac540d45a45e45d40e6581b0c5f7eb5
process: Avoid late failure if /dev/null cannot be opened.

It is (very slightly) risky to open /dev/null every time that we need it,
because open can fail.  So this commit opens /dev/null in advance instead.

Coverity #10719.
lib/process.c