Re: tcsetpgrp()



On 2006-06-23, oldhag <oldhag@xxxxxxxxx> wrote:
I am running sshd on a custom QNX environment. If I run an application
that calls tcsetpgrp(0, getpid()), the call fails with errno set to
ENOTTY. There isn't anything untoward that happens otherwise, but I am
wondering if there is some parameter that is not being setup properly.

The tcsetpgrp() function causes breaks on the terminal device to
generate a SIGINT on all processes in the given group, so I am
wondering if there is some conflict with the way ssh handles SIGINT
internally.

Which SSH implementation and version thereof are you running? If it's
OpenSSH, one possibilty is this:

http://bugzilla.mindrot.org/show_bug.cgi?id=1156

On QNX (or at least Neutrino) the pty allocation process apparently
has an unfortunate habit of acquiring the pty it's allocating as sshd's
controlling terminal (this happens on a number of SysV derived systems
including Solaris).

You can try adding -DSSHD_ACQUIRES_CTTY to your CFLAGS to work around
this. In the next release of OpenSSH (4.4), configure will do this
automatically.

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
.



Relevant Pages

  • Re: SSH Connecting through Firewall
    ... >client to use HTTPS or FTP proxy. ... There is no such option in the OpenSSH ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: Adding "X11UseLocalhost no" to /etc/ssh/sshd_config breaks x forwarding
    ... telnet: Unable to connect to remote host: Connection refused ... has been turned off either by Openssh or by Red Hat. ... feature or a bug I am unsure, there are warnings in the man page ... Good judgement comes with experience. ...
    (SSH)
  • Re: Solaris 9 sshd<---> Cygwin/X ssh Problems
    ... >uses a Solaris box as an sshd server? ... I don't know if this exists in SunSSH but for OpenSSH this can be caused ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: Odd environment ($PATH)
    ... >I encounter an odd phenomenon when I ssh into a LFS box and ... What SSH implementation and version are you using? ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: Tacacs and OpenSSH
    ... attempting to integrate a Tacacs+ PAM with OpenSSH. ... There's a patch that may help at ... Good judgement comes with experience. ...
    (SSH)