Commit 40298dee authored by Steve Bennett's avatar Steve Bennett
Browse files

exec: support stdin fd being closed



Don't try to dup2() a file descriptor that is already
correct. This can happen if, for example, stdin is closed
and exec redirects stdin from a file, thus opening the input
as file descriptor 0.

Fixes #201

Signed-off-by: default avatarSteve Bennett <steveb@workware.net.au>
parent bcd44341
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