From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: zpty and controlling tty (and other fd's)
Date: Wed, 3 May 2000 17:36:44 +0400 [thread overview]
Message-ID: <000b01bfb504$9f561a20$21c9ca95@mow.siemens.ru> (raw)
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 >>
reply other threads:[~2000-05-03 13:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000b01bfb504$9f561a20$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).