Re: [PATCH 1/1] hurd: Avoid extra ctty RPCs in init_dtable ()

2023-04-17 Thread Samuel Thibault
Applied, thanks! Sergey Bugaev, le sam. 15 avril 2023 19:17:18 +0300, a ecrit: > It is common to have (some of) stdin, stdout and stderr point to the > very same port. We were making the ctty RPCs that _hurd_port2fd () does > for each one of them separately: > > 1. term_getctty () > 2. mach_port_

[PATCH 1/1] hurd: Avoid extra ctty RPCs in init_dtable ()

2023-04-15 Thread Sergey Bugaev
It is common to have (some of) stdin, stdout and stderr point to the very same port. We were making the ctty RPCs that _hurd_port2fd () does for each one of them separately: 1. term_getctty () 2. mach_port_deallocate () 3. term_open_ctty () Instead, let's detect this case and duplicate the ctty p