Hi,

I think that even STDIN cannot be relied to be always there ...

tchet@quieter:~$ setsid -w bts version < /dev/null
Cannot open /dev/tty: No such device or address at /usr/bin/bts line 1232.

Le mer. 24 déc. 2025 à 17:52, Daniel Gröber <[email protected]> a écrit :
>
> Hi Alexandre,
>
> Thanks for the report!
>
> What an annoying edge-case :-). Essentially: controlling TTY isn't set
> here.
>
> An easier reproducer I wrote down when working on this code (with the fix):
>
>     $ setsid -w bts version
>     bts: WARN: Could not open /dev/tty despite STDIN being a TTY: No such 
> device or address
>     bts: Falling back to using STDIN.
>     [...]
>
> I've added a fallback to just use STDIN in this case.
>
> Thanks,
> --Daniel

Reply via email to