Sourceware Bugzilla – Attachment 1083 Details for
Bug 2619
Can't add an observer to init (PID = 1)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
2619 patch
2619.patch (text/plain), 2.55 KB, created by
Stan Cox
on 2006-06-13 14:36:18 UTC
(
hide
)
Description:
2619 patch
Filename:
MIME Type:
Creator:
Stan Cox
Created:
2006-06-13 14:36:18 UTC
Size:
2.55 KB
patch
obsolete
>Index: frysk-gui/frysk/gui/Gui.java >=================================================================== >RCS file: /cvs/frysk/frysk-gui/frysk/gui/Gui.java,v >retrieving revision 1.23 >diff -u -p -r1.23 Gui.java >--- frysk-gui/frysk/gui/Gui.java 11 Jun 2006 03:58:30 -0000 1.23 >+++ frysk-gui/frysk/gui/Gui.java 13 Jun 2006 14:29:05 -0000 >@@ -90,6 +90,7 @@ import frysk.gui.srcwin.prefs.SyntaxPref > import frysk.gui.srcwin.tags.Tagset; > import frysk.gui.srcwin.tags.TagsetManager; > import frysk.proc.Manager; >+import frysk.sys.Errno; > > public class Gui > implements LifeCycleListener, Saveable >@@ -366,6 +367,10 @@ public class Gui > // eventLoop.run(); > Manager.eventLoop.run(); > } >+ catch (Errno.Eperm e) { >+ DialogManager.showErrorDialog("Frysk Core Errors", >+ "Cannot attach to this process", e); >+ } > catch (Exception e) { > DialogManager.showErrorDialog("Frysk Core Errors", "Frysk Core has reported the following errors", e); //$NON-NLS-1$ //$NON-NLS-2$ > System.exit(1); >Index: frysk-sys/frysk/sys/Errno.java >=================================================================== >RCS file: /cvs/frysk/frysk-sys/frysk/sys/Errno.java,v >retrieving revision 1.3 >diff -u -p -r1.3 Errno.java >--- frysk-sys/frysk/sys/Errno.java 27 Sep 2005 22:33:58 -0000 1.3 >+++ frysk-sys/frysk/sys/Errno.java 13 Jun 2006 14:29:09 -0000 >@@ -127,6 +127,19 @@ public class Errno > } > > /** >+ * Operation not permitted >+ */ >+ static public class Eperm >+ extends Errno >+ { >+ private static final long serialVersionUID = 1L; >+ protected Eperm (String message) >+ { >+ super (message); >+ } >+ } >+ >+ /** > * Returns the error message string for this error. > */ > public String toString () >Index: frysk-sys/frysk/sys/cni/Errno.cxx >=================================================================== >RCS file: /cvs/frysk/frysk-sys/frysk/sys/cni/Errno.cxx,v >retrieving revision 1.4 >diff -u -p -r1.4 Errno.cxx >--- frysk-sys/frysk/sys/cni/Errno.cxx 23 Oct 2005 03:41:51 -0000 1.4 >+++ frysk-sys/frysk/sys/cni/Errno.cxx 13 Jun 2006 14:29:09 -0000 >@@ -51,6 +51,7 @@ > #include "frysk/sys/Errno$Einval.h" > #include "frysk/sys/Errno$Echild.h" > #include "frysk/sys/Errno$Esrch.h" >+#include "frysk/sys/Errno$Eperm.h" > #include "frysk/sys/cni/Errno.hxx" > > /** >@@ -104,6 +105,10 @@ throwErrno (int err, jstring jmessage) > case ECHILD: > throw new frysk::sys::Errno$Echild (jmessage); > #endif >+#ifdef EPERM >+ case EPERM: >+ throw new frysk::sys::Errno$Eperm (jmessage); >+#endif > default: > throw new frysk::sys::Errno (jmessage); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2619
: 1083