zsh-workers
 help / color / mirror / code / Atom feed
* zpty and controlling tty (and other fd's)
@ 2000-05-03 13:36 Andrej Borsenkow
  0 siblings, 0 replies; only message in thread
From: Andrej Borsenkow @ 2000-05-03 13:36 UTC (permalink / raw)
  To: ZSH workers mailing list

Should not we reset controlling tty for external command as well? Else,
I'm afraid, commands that directly open /dev/tty may have problems with
it. Currently it looks a bit funny:


bor@itsrm2% ps -ft pts/6
     UID   PID  PPID  C    STIME TTY      TIME CMD
     bor 19935 19370  0 17:30:44 pts/6    0:00 nslookup
     bor 19370 19368  0 16:59:27 pts/6    0:03 /tools/bin/zsh

but

bor@itsrm2% lsof -c nslookup
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
nslookup 19935  bor  cwd   VDIR    4,5     3072   125 /home/bor
nslookup 19935  bor  txt   VREG    4,3    69961 46376 /usr/sbin/nslookup
nslookup 19935  bor  txt   VREG    4,3   715161 23840 /usr/lib/libc.so.1
nslookup 19935  bor  txt   VREG    4,3   320397 23882
/usr/lib/libresolv.so
nslookup 19935  bor  txt   VREG    4,3   192333 23859
/usr/lib/libsocket.so
nslookup 19935  bor  txt   VREG    4,3   592617 26181 /usr/lib/libnsl.so
nslookup 19935  bor    0u  VCHR  112,8     0t66  4202
STR:/dev/pts/8->pts
nslookup 19935  bor    1u  VCHR  112,8     0t66  4202
STR:/dev/pts/8->pts
nslookup 19935  bor    2u  VCHR  112,8     0t66  4202
STR:/dev/pts/8->pts
nslookup 19935  bor    3u  VCHR  111,8     0t69       STR:/dev/ptmx->ptm
nslookup 19935  bor   10u  VCHR  112,6   0t1231  4200
STR:/dev/pts/6->pts
nslookup 19935  bor   11u  VCHR  112,6   0t1715  4200
STR:/dev/pts/6->pts
nslookup 19935  bor   13r  VREG    4,5  1303088 24153
/home/bor/.zsh.d/std-3.1.7-pre-2.zwc


Oh, yes, and why nslookup has fd's 10 and 11 open at all?

-andrej

Have a nice DOS!
B >>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-03 13:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-03 13:36 zpty and controlling tty (and other fd's) Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).