[chronojump] Fixed Chronojump run n times simultaneously
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed Chronojump run n times simultaneously
- Date: Tue, 8 Jan 2013 00:04:38 +0000 (UTC)
commit 5ee8d0367c70f1f2f264b2f1b2c92ea64eabfa03
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jan 8 01:02:10 2013 +0100
Fixed Chronojump run n times simultaneously
execute_on_linux.txt | 7 ++++++-
src/chronojump.cs | 10 ++++++----
2 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/execute_on_linux.txt b/execute_on_linux.txt
index 816c9e9..49654a4 100644
--- a/execute_on_linux.txt
+++ b/execute_on_linux.txt
@@ -1,9 +1,14 @@
execute:
mono --runtime=v4.0 /usr/local/lib/chronojump/Chronojump.exe
-
#https://bugs.launchpad.net/ubuntu/+source/mono/+bug/882501
+in fact, now that there's the libglade swapped warning, better execute like this:
+
+mono --runtime=v4.0 /usr/local/lib/chronojump/Chronojump.exe 2>/tmp/err
+
+
+
but runs slowly, I think because it's compiled for runtime 2.0. Continue reading...
compile like this:
diff --git a/src/chronojump.cs b/src/chronojump.cs
index a326f88..1f177b6 100644
--- a/src/chronojump.cs
+++ b/src/chronojump.cs
@@ -134,7 +134,7 @@ public class ChronoJump
protected void sqliteThings () {
bool crashedBefore = checkIfChronojumpExitAbnormally();
- if(crashedBefore) {
+// if(crashedBefore) {
if(chronojumpIsExecutingNTimes()) {
quitNow = true;
Application.Quit();
@@ -142,7 +142,7 @@ public class ChronoJump
}
else
chronojumpCrashedBefore();
- }
+// }
//print version of chronojump
progVersion = readVersion();
@@ -672,8 +672,10 @@ Console.WriteLine("--6--");
//delete the '\n' that ReaderToEnd() has put
pid = pid.TrimEnd(new char[1] {'\n'});
-
- Process [] pids = Process.GetProcessesByName("Chronojump");
+
+ //Process [] pids = Process.GetProcessesByName("Chronojump");
+ Process [] pids = Process.GetProcessesByName("mono");
+
foreach (Process myPid in pids)
if (myPid.Id == Convert.ToInt32(pid))
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]