Subject: Pine and Solaris 2.5 x86

From: Chris Marshall <[email-masked]>
Date: Tue, 03 Sep 1996 14:39:24 +0100

Hi,

Has anyone had problems using pine (3.95) on solaris 2.5.1 x86?

Specifically when using pine to send mail via smtp, my machines
lockup and need to be rebooted.  

-- 
Chris Marshall

---

From: David L Miller <[email-masked]>
Date: Wed, 4 Sep 1996 14:49:12 -0700

> lockup and need to be rebooted.  

There is a bug in Solaris 2.5 STREAMS that causes a system hang and
which Pine 3.95 can trigger.  I don't know if Sun has come out with a
fix yet, but the following Pine patch has been proposed by Bo Kullmar
<[email-masked]>.  It is reported to work for some people and not
for others...

*** tcp_unix.c~ Tue Apr  9 21:44:53 1996
--- tcp_unix.c  Thu Aug 22 21:00:50 1996
***************
*** 200,206 ****
    if (i > 0) {                        /* success, make sure really connected */
      fcntl (sock,F_SETFL,flgs);        /* restore blocking status */
                                /* get socket status */
!     while ((i = read (sock,tmp,0)) < 0 && errno == EINTR);
      if (!i) i = 1;            /* make success if the read is OK */
    }
    if (i <= 0) {                       /* timeout or error? */
--- 200,207 ----
    if (i > 0) {                        /* success, make sure really connected */
      fcntl (sock,F_SETFL,flgs);        /* restore blocking status */
                                /* get socket status */
!     /*    while ((i = read (sock,tmp,0)) < 0 && errno == EINTR);*/
!     i = 1;
      if (!i) i = 1;            /* make success if the read is OK */
    }
    if (i <= 0) {                       /* timeout or error? */

|\ |  |\/|  David L. Miller    [email-masked]  (206) 685-6240
|/ |_ |  |  Software Engineer, Pine Development Team   (206) 685-4045 (FAX)
University of Washington, Networks & Distributed Computing, Box 354841
4545 15th Ave NE, Seattle WA 98105, USA