Re: hydra and t632

Thien-Thi Nguyen <[email protected]> Thu, 22 Oct 2020 03:37:02 -0400
Newsgroups gmane.comp.version-control.rcs.bugs
Message-ID <[email protected]>
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

() Efraim Flashner <[email protected]>
() 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 27372maxres=
ident)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 =E2=80=98C-c=E2=80=99, then it PASSes because the underlying =E2=80=98=
co=E2=80=99 DTRT.  So
it seems timeout has nothing to do w/ the root cause.  Good,
we're making progress.

   > Another possiblity is (c) =E2=80=98co=E2=80=99 is not detecting the TT=
Y, but that
   > is doubtful since t632.d/signal-handling-out-and-err has the line
   >=20
   >   writable t632.d/x exists; remove it? [ny](n):=20
   >=20
   > which shows =E2=80=98co=E2=80=99 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 =E2=80=98isatty (STDIN_FILENO)=E2=80=99 (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 =E2=80=98getc (in)=E2=80=99 (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

=2D-=20
Thien-Thi Nguyen -----------------------------------------------
 (defun responsep (query)               ; (2020) Software Libero
   (pcase (context query)               ;       =3D Dissenso Etico
     (`(technical ,ml) (correctp ml))
     ...))                              748E A0E8 1CB8 A748 9BFA
=2D-------------------------------------- 6CE4 6703 2224 4C80 7502

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iG4EARECAC4WIQR0jqDoHLinSJv6bORnAyIkTIB1AgUCX5E2oBAcdHRuQGdudXZv
bGEub3JnAAoJEGcDIiRMgHUCWpoAoNTPaLWwaGjJijx0FRxKiJvf+iCBAKCF1R+Z
pZFE34RWBBUR2eKUzpjtoA==
=Usdh
-----END PGP SIGNATURE-----
--=-=-=--