Open "/dev/null" with more appropriate mode.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>