patches for UnixWare v2.x pty (misc.c,configure.in)

Damien Miller djm at mindrot.org
Wed Feb 14 00:40:13 EST 2001


On Tue, 13 Feb 2001, Kevin Steves wrote:

> On Mon, 12 Feb 2001 tom at avatar.itc.nrcs.usda.gov wrote:
> : I have attached two patches to the current source code. The first
> : addresses the pty problems with UnixWare 2.x with connecting with
> : SSH2. It sets the sigaction to SA_RESTART. This fixes UnixWare v2.x,
> : but haven't heard any feedback as to effects on other OS'.
> 
> i don't understand, why is SA_RESTART is needed?

On Unixware 2.x grantpt (pty.c) was getting interrupted by SIGCHLD.
On sysv systems syscalls aren't restarted by default after being 
interrupted by a signal. It is the default for BSD signal, so it makes
sense to have it in there.

-d

-- 
| Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's 
| http://www.mindrot.org          /   distributed filesystem'' - Dan Geer






More information about the openssh-unix-dev mailing list