Commit 9cade236 authored by Timo Sirainen's avatar Timo Sirainen Committed by Keith Winstein
Browse files

It's safer to close stdin/out/err by replacing their fd with /dev/null.


Otherwise the next opened fds are 0/1/2, and any code writing to
stdout/stderr might break things by writing to an unintentional fd.

Signed-off-by: default avatarTimo Sirainen <tss@iki.fi>
parent b245ed00
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment