On Win98 sshd fills syslog with error lines such as

2003-02-22 18:33:26 : sshd : PID 213289 : LOG_ERR : 
 error: Failed to disconnect from controlling tty.
2003-02-22 18:33:32 : sshd : PID 771213 : LOG_INFO : 
 syslogin_perform_logout: logout() returned an error

*****
The first seems to originate from sshpty.c
        if (setsid() < 0)
                error("setsid: %.100s", strerror(errno));

        /*
         * Verify that we are successfully disconnected from the controlling
         * tty.
         */
        fd = open(_PATH_TTY, O_RDWR | O_NOCTTY);
        if (fd >= 0) {
                error("Failed to disconnect from controlling tty.");
                close(fd);
        }
*******
The second from loginrec.c

static int
syslogin_perform_logout(struct logininfo *li)
{
        (void)line_stripname(line, li->line, sizeof(line));

        if (!logout(line)) {
                log("syslogin_perform_logout: logout() returned an error");

Pierre

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to