This is the mail archive of the
frysk-cvs@sources.redhat.com
mailing list for the frysk project.
[SCM] master: swagiaal: use Manageer.host to create live proc from dead one
- From: swagiaal at sourceware dot org
- To: frysk-cvs at sourceware dot org
- Date: 11 Mar 2008 21:33:27 -0000
- Subject: [SCM] master: swagiaal: use Manageer.host to create live proc from dead one
- Reply-to: frysk at sourceware dot org
The branch, master has been updated
via ed18197ea88aaff1e49c892c1862befcd9d71f7e (commit)
from 7738b08136d36420784885c1bc19d260a936ade8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ed18197ea88aaff1e49c892c1862befcd9d71f7e
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Tue Mar 11 17:29:42 2008 -0400
swagiaal: use Manageer.host to create live proc from dead one
frysk-core/frysk/util/ChangeLog
+2008-03-11 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * ProcRunUtil.java (.parseCommand): Pass template proc
+ to host for creating live proc.
+
-----------------------------------------------------------------------
Summary of changes:
frysk-core/frysk/util/ChangeLog | 5 +++++
frysk-core/frysk/util/ProcRunUtil.java | 17 +----------------
2 files changed, 6 insertions(+), 16 deletions(-)
First 500 lines of diff:
diff --git a/frysk-core/frysk/util/ChangeLog b/frysk-core/frysk/util/ChangeLog
index b2d6f27..ceb09a5 100644
--- a/frysk-core/frysk/util/ChangeLog
+++ b/frysk-core/frysk/util/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-11 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * ProcRunUtil.java (.parseCommand): Pass template proc
+ to host for creating live proc.
+
2008-03-11 Sami Wagiaalla <swagiaal@redhat.com>
* FCatch.java: Remove cached stack trace if new stack
diff --git a/frysk-core/frysk/util/ProcRunUtil.java b/frysk-core/frysk/util/ProcRunUtil.java
index 073e777..71bb6f1 100644
--- a/frysk-core/frysk/util/ProcRunUtil.java
+++ b/frysk-core/frysk/util/ProcRunUtil.java
@@ -39,7 +39,6 @@
package frysk.util;
-import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
@@ -101,21 +100,7 @@ public class ProcRunUtil {
// @Override
public void parseCommand(Proc command) {
-
- //Exctact arguments and executable from give Proc object
- ArrayList commandAndArguments;
- String[] line = command.getCmdLine();
- commandAndArguments = new ArrayList();
- for (int i = 0; i < line.length; i++){
- commandAndArguments.add(line[i]);
- }
-
- //Create a live process using the extracted command.
- // attachedObserver will handle adding of the remaining
- // observers.
- Manager.host.requestCreateAttachedProc(
- (String[]) commandAndArguments.toArray(new String[0]),
- attachedObserver);
+ Manager.host.requestCreateAttachedProc(command, attachedObserver);
}
};
hooks/post-receive
--
frysk system monitor/debugger