On Sat, Feb 29, 2020 at 3:41 PM Manlio Perillo wrote:
>
> What about using fcntl with F_DUPFD?
> [...]
> It does not have the problems of dup2 where you can use an already in use fd,
> and unlike dup you can specify where the new fd should be allocated.
Thanks, good to know and may come in handy
On Friday, February 28, 2020 at 9:41:39 PM UTC+1, pboam...@gmail.com wrote:
>
> (I've asked the same question already, but probably in the wrong thread,
> sorry for the repost.)
>
> What to do on EINTR from syscall.Dup2 (Linux)?
>
> 1) It never happen.
> 2) Retry.
> 3) Take it as irrecoverable.
>