public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Catch exception when process is gone.
@ 2008-01-17 19:32 rmoseley
  0 siblings, 0 replies; only message in thread
From: rmoseley @ 2008-01-17 19:32 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  0658ba9ba71969deabd233d212bbb59046220f4d (commit)
      from  a5715aa1057d05bec280b882aaa08b31132b4d19 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 0658ba9ba71969deabd233d212bbb59046220f4d
Author: Rick Moseley <rmoseley@dhcp-215.hsv.redhat.com>
Date:   Thu Jan 17 13:32:36 2008 -0600

    Catch exception when process is gone.
    
    * LinuxWaitBuilder.java: Catch error when process is gone.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/proc/live/ChangeLog             |    4 ++++
 frysk-core/frysk/proc/live/LinuxWaitBuilder.java |    9 +++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/live/ChangeLog b/frysk-core/frysk/proc/live/ChangeLog
index 00a2941..da4b78e 100644
--- a/frysk-core/frysk/proc/live/ChangeLog
+++ b/frysk-core/frysk/proc/live/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-17  Rick Moseley  <rmoseley@redhat.com>
+
+	* LinuxWaitBuilder.java: Catch error when process is gone.
+
 2008-01-17  Andrew Cagney  <cagney@redhat.com>
 
 	* LinuxPtraceProc.java (getStateFIXME()): Return "<null>" when
diff --git a/frysk-core/frysk/proc/live/LinuxWaitBuilder.java b/frysk-core/frysk/proc/live/LinuxWaitBuilder.java
index 2ce7acd..a7d2dac 100644
--- a/frysk-core/frysk/proc/live/LinuxWaitBuilder.java
+++ b/frysk-core/frysk/proc/live/LinuxWaitBuilder.java
@@ -188,9 +188,14 @@ class LinuxWaitBuilder
     public void disappeared (int pid, Throwable w)
     {
         LinuxPtraceTask task = searchId.get(pid, "{0} disappeared\n");
-        task.processDisappearedEvent(w);
+        // XXX Sometimes it seems it has already disappeared and this fails
+        // Catch the failure, but not sure what to do with the failure right now
+        // Failures were seen here while running frysk.hpd.TestRunCommand -r 20
+        try {
+            task.processDisappearedEvent(w);
+        } catch (Exception e) {}
     }
-    
+
     public void syscallEvent (int pid)
     {
         LinuxPtraceTask task = searchId.get(pid, "{0} syscallEvent\n");


hooks/post-receive
--
frysk system monitor/debugger


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-17 19:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-17 19:32 [SCM] master: Catch exception when process is gone rmoseley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).