Closing stdin/stdout/stderr is often a bad idea as a future open() can end up with its fd. Leave STDIN_FILENO open and limit it to no rights instead.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Differential D7984
elfdump: limit STDIN to no rights rather than closing it emaste on Sep 20 2016, 7:15 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Closing stdin/stdout/stderr is often a bad idea as a future open() can end up with its fd. Leave STDIN_FILENO open and limit it to no rights instead.
Diff Detail
|