*BSD News Article 21324


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!noc.near.net!sanders.com!newshost!nation
From: nation@dopey.sanders.lockheed.com (Robert Nation)
Newsgroups: comp.os.386bsd.apps
Subject: Re: Fvwm-0.97 X-Window System Window Manager available
Date: 22 Sep 93 07:52:38
Organization: Lockheed Sanders Inc.
Lines: 43
Message-ID: <NATION.93Sep22075238@dopey.sanders.lockheed.com>
References: <NATION.93Sep21153316@snoopy.sanders.lockheed.com> <hastyCDqA3v.E23@netcom.com>
NNTP-Posting-Host: dopey.sanders.lockheed.com
In-reply-to: hasty@netcom.com's message of Tue, 21 Sep 1993 23:47:54 GMT

There was a minor bug in fvwm-0.97-src.tar.z from sunsite.unc.edu,
which should probably be corrected. The release has been updated and
saved as fvwm-0.97b-src.tar.z. Here is a patch for anyone who already 
downloaded the code:
--- dist.events.c       Wed Sep 22 05:43:30 1993
+++ events.c    Wed Sep 22 05:44:38 1993
@@ -864,7 +864,7 @@
              value.it_value.tv_sec = Scr.AutoRaiseDelay/1000;
              value.it_interval.tv_usec = 0;
              value.it_interval.tv_sec = 0;
-             setitimer(ITIMER_REAL,value,NULL);
+             setitimer(ITIMER_REAL,&value,NULL);
            }
          else
            if(Event.xany.window != Tmp_win->w)
@@ -973,7 +973,7 @@
          value.it_value.tv_sec = Scr.AutoRaiseDelay/1000;
          value.it_interval.tv_usec = 0;
          value.it_interval.tv_sec = 0;
-         setitimer(ITIMER_REAL,value,NULL);
+         setitimer(ITIMER_REAL,&value,NULL);
        }
     }
   if(!(Tmp_win->flags & ICON))
@@ -1020,7 +1020,7 @@
                  value.it_value.tv_sec = 0;
                  value.it_interval.tv_usec = 0;
                  value.it_interval.tv_sec = 0;
-                 setitimer(ITIMER_REAL,value,NULL);
+                 setitimer(ITIMER_REAL,&value,NULL);
                }
              SetBorder (Tmp_win, False,False,True);
            }

For some reason SunOS4.1.3, and maybe all BSD systems tolerate the
error quite nicely, but SYSV type systems seem to have problems.
Another handy patch for SYSV type users (HP-UX) is to change
fd_width = getdtablesize();
in events.c to 
 fd_width = sysconf(_SC_OPEN_MAX);
But this is not required.

Rob