Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jun 2000 13:48:41 -0700 (PDT)
From:      Alex Varju <varju@ca.webct.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/18971: bug fix for ports/palm/jpilot
Message-ID:  <200006022048.NAA00583@snapple.webct.com>

next in thread | raw e-mail | index | archive | help

>Number:         18971
>Category:       ports
>Synopsis:       bug fix for ports/palm/jpilot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 02 13:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Alex Varju
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
WebCT
>Environment:
>Description:
There is a problem with the synchronization routines in jpilot, which
cause the process to hang sometimes.  Thomas Runge
<runge@rostock.zgdv.de> sent me a patch the other day which should
solve the problem.  Here is his summary:

|As you probably found out, jpilot has a big problem with
|synchronizing. Almost everytime it freezes after that, all you can do
|is killing the process.  Thats very annoying and I had a look into the
|sources. The problem was, that the author makes a lot of X-calls
|inside a signal handler and a debugging sessions shows, that the
|problem lies in XSync. I guess, it works on Linux, because they have
|thread-save X-libs, which we do not have by default, yet.  Please find
|my patches attached, they work for me and will most probably work on
|every unix.

I've emailed the author, and he has said that this patch will be in
the next release of jpilot.

>How-To-Repeat:
This bug is intermittent, but it usually occurs after synchronization
with the pilot.
>Fix:
The following patch should be created as
ports/palm/jpilot/patches/patch-bd


--- jpilot.c      Sat Feb 12 21:33:21 2000
+++ jpilot.c.orig Fri May 19 19:49:10 2000
@@ -609,6 +609,11 @@
            bad_sync_exit_status(exit_status);
         }
       }
+      /*Look for finish message */
+      Pstr1 = strstr(buf, "Finished");
+      if (Pstr1) {
+        cb_app_button(NULL, GINT_TO_POINTER(REDRAW));
+      }
    }
 }

--- sync.c        Thu Feb 24 03:20:33 2000
+++ sync.c.orig   Fri May 19 19:48:43 2000
@@ -107,7 +107,7 @@
    waitpid(-1, NULL, WNOHANG);
 
    /*refresh the screen after a sync */
-   cb_app_button(NULL, GINT_TO_POINTER(REDRAW));
+   /*cb_app_button(NULL, GINT_TO_POINTER(REDRAW));*/
 
    return;
 }


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006022048.NAA00583>