Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: (more) Re: PATCH: 3.1.5* & 3.0.5: Re: strange xterm & zsh behaviour
- X-seq: zsh-workers 5115
- From: Drazen Kacar <dave@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: (more) Re: PATCH: 3.1.5* & 3.0.5: Re: strange xterm & zsh behaviour
- Date: Sat, 30 Jan 1999 06:54:41 +0100
- Cc: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxxx, Drazen Kacar <dave@xxxxxxx>
- In-reply-to: <990129105947.ZM7816@xxxxxxxxxxxxxxxxxxxxxxx>; from Bart Schaefer on Fri, Jan 29, 1999 at 10:59:47AM -0800
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <9901290916.AA53082@xxxxxxxxxxxxxxxxx> <990129105947.ZM7816@xxxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> I think the following is better; apply it on top of Peter's patch. Besides
> testing fds 0 and 1 for read-write-ness before using them (when possible),
> it also prefers ttyname(SHTTY) to "/dev/tty" for the setting of the $TTY
> parameter.
Since I don't have the latest zsh development source tree, could you
integrate this one in:
#ifdef TIOCNXCL
if(open("dev/tty", O_RDWR) < 0 && errno == EBUSY)
ioctl(0, TIOCNXCL, 0);
#endif
That will unlock terminal device (at least on Solaris) and something
should really do that (preferrably the shell). TIOCNXCL is defined in
termios.h.
--
.-. .-. Life is a sexually transmitted disease.
(_ \ / _)
| dave@xxxxxxx
| dave@xxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author