Better FD for the host-side portal code?
12 Jul
2025
12 Jul
'25
6:11 p.m.
I saw that the host-side portal code uses FD 0 for the listening socket. Would it be better to use a different file descriptor for that? Alternatively, I can dup() /dev/null over stdin. -- Sincerely, Demi Marie Obenour (she/her/hers)
14 Jul
14 Jul
9:58 a.m.
Demi Marie Obenour <demiobenour@gmail.com> writes:
I saw that the host-side portal code uses FD 0 for the listening socket. Would it be better to use a different file descriptor for that? Alternatively, I can dup() /dev/null over stdin.
FD 0 is used on purpose. This is inetd-style socket activation, a standard interface supported by service managers.
264
Age (days ago)
266
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alyssa Ross -
Demi Marie Obenour