[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hydra and t632
From: |
Efraim Flashner |
Subject: |
Re: hydra and t632 |
Date: |
Thu, 22 Oct 2020 10:47:04 +0300 |
On Thu, Oct 22, 2020 at 03:37:02AM -0400, Thien-Thi Nguyen wrote:
> () Efraim Flashner <efraim@flashner.co.il>
> () Thu, 22 Oct 2020 10:00:10 +0300
>
> [timeout red herring]
>
> And with timeout removed completely:
>
> Command exited with non-zero status 2
> 0.37user 0.13system 0:00.63elapsed 80%CPU (0avgtext+0avgdata
> 27372maxresident)k
> 192inputs+1552outputs (1major+17323minor)pagefaults 0swaps
> // output from t632.d/signal-handling-out-and-err:
> t632.d/x,v --> t632.d/x
> revision 1.1 (locked)
> writable t632.d/x exists; remove it? [ny](n):
> co: checkout aborted
>
> Hmmm, interesting! On my system, this blocks completely until i
> type ‘C-c’, then it PASSes because the underlying ‘co’ DTRT. So
> it seems timeout has nothing to do w/ the root cause. Good,
> we're making progress.
>
> > Another possiblity is (c) ‘co’ is not detecting the TTY, but that
> > is doubtful since t632.d/signal-handling-out-and-err has the line
> >
> > writable t632.d/x exists; remove it? [ny](n):
> >
> > which shows ‘co’ initiating user-interaction, which it only does
> > if it has detected the TTY.
>
> How does it detect the TTY?
>
> It boils down to a call to ‘isatty (STDIN_FILENO)’ (see
> src/rcsgen.c:193).
>
> It could be that it detects the
> TTY but it's not actually useable.
>
> I suppose that "useable" means the ‘getc (in)’ (see
> src/rcsgen.c:208) works.
>
> From the build environment:
> output of "which tty":
> /gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/bin/tty
>
> output of "ls -la /dev/tt*":
> ls: cannot access '/dev/tt*': No such file or directory
>
> No, you have to run that program; it prints out the tty:
>
> $ which tty
> /usr/bin/tty
> $ tty
> /dev/pts/6
> $ ls -l $(tty)
> crw--w---- 1 ttn tty 136, 6 ott 22 03:32 /dev/pts/6
>
Rather than convert it from guile to shell:
(display (which "tty"))
/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/bin/tty
(system* (which "tty"))
not a tty
(system* "ls" "-la" (which "tty"))
-r-xr-xr-x 2 0 0 46584 Jan 1 1970
/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/bin/tty
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
signature.asc
Description: PGP signature
- Re: hydra and t632, (continued)
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/20
- Re: hydra and t632, Efraim Flashner, 2020/10/20
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/20
- Re: hydra and t632, Efraim Flashner, 2020/10/21
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/21
- Re: hydra and t632, Efraim Flashner, 2020/10/21
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/21
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/21
- Re: hydra and t632, Efraim Flashner, 2020/10/22
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/22
- Re: hydra and t632,
Efraim Flashner <=
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/22
- Re: hydra and t632, Efraim Flashner, 2020/10/22
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/22
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/22
- Re: hydra and t632, Efraim Flashner, 2020/10/23
- Re: hydra and t632, Thien-Thi Nguyen, 2020/10/23
- Re: hydra and t632, Efraim Flashner, 2020/10/23