4 ms·
What's the motivation behind closing file descriptors 3 and 4? # Close weird external file descriptors exec 3>&- exec 4>&- From this commit: https:/
by omoikane 3y ago
What's the motivation behind closing file descriptors 3 and 4?
# Close weird external file descriptors
exec 3>&-
exec 4>&-
From this commit:
https://github.com/dehydrated-io/dehydrated/commit/b116e6bc2be28a1806c101d3ac0452bc0aca345c https://github.com/dehydrated-io/dehydrated/commit/b116e6bc2...
- heyoni 3y agoWhen are those ever used? Is it to customize output for when you’re sending to a file vs terminal?
- sirn 3y agosystemd socket activation opens extra fds starting from fd 3 (SD_LISTEN_FDS_START). Though I can't think of a scenario where this may be relevant for dehydrated. Maybe some weird systemd unit somewhere that invoke dehydrated does this?