[Bug 100] New: serverloop.c modifications for correct UNICOS behavior

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Feb 5 06:20:47 EST 2002


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

           Summary: serverloop.c modifications for correct UNICOS behavior
           Product: Portable OpenSSH
           Version: 3.0.2p1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sshd
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: wendyp at cray.com


--- serverloop.c.orig   Mon Feb  4 12:32:51 2002
+++ serverloop.c        Mon Feb  4 12:43:31 2002
@@ -143,7 +143,9 @@
        int save_errno = errno;
        debug("Received SIGCHLD.");
        child_terminated = 1;
+#ifndef _CRAY
        mysignal(SIGCHLD, sigchld_handler);
+#endif
        notify_parent();
        errno = save_errno;
 }
@@ -673,7 +675,11 @@
        /* We no longer want our SIGCHLD handler to be called. */
        mysignal(SIGCHLD, SIG_DFL);

+#ifdef _CRAY
+       while((wait_pid = waitpid(-1, &wait_status, child_terminated ? WNOHANG :
 0)) && errno == EINTR);
+#else
        wait_pid = waitpid(-1, &wait_status, child_terminated ? WNOHANG : 0);
+#endif /* _CRAY */
        if (wait_pid == -1)
                packet_disconnect("wait: %.100s", strerror(errno));
        else if (wait_pid != pid)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list