seed r658 - trunk/modules/Multiprocessing
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r658 - trunk/modules/Multiprocessing
- Date: Mon, 5 Jan 2009 08:20:39 +0000 (UTC)
Author: hortont
Date: Mon Jan 5 08:20:38 2009
New Revision: 658
URL: http://svn.gnome.org/viewvc/seed?rev=658&view=rev
Log:
Found some more /usr/local/bin/seed garbage.
Modified:
trunk/modules/Multiprocessing/bi.js
trunk/modules/Multiprocessing/fork.js
Modified: trunk/modules/Multiprocessing/bi.js
==============================================================================
--- trunk/modules/Multiprocessing/bi.js (original)
+++ trunk/modules/Multiprocessing/bi.js Mon Jan 5 08:20:38 2009
@@ -1,6 +1,8 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
+
Seed.import_namespace("Multiprocessing");
Seed.import_namespace("Gtk");
+
pipes = new Multiprocessing.Pipe();
child_pid = Seed.fork();
@@ -15,8 +17,9 @@
mine.write(JSON.stringify(message));
return true;
});
- Gtk.main();
+ Gtk.main();
}
+
mine = pipes[1];
mine.write("Ping");
message = JSON.parse(mine.read());
Modified: trunk/modules/Multiprocessing/fork.js
==============================================================================
--- trunk/modules/Multiprocessing/fork.js (original)
+++ trunk/modules/Multiprocessing/fork.js Mon Jan 5 08:20:38 2009
@@ -1,4 +1,5 @@
-#!/usr/local/bin/seed
+#!/usr/bin/env seed
+
Seed.import_namespace("GLib");
Seed.import_namespace("Gtk");
Seed.import_namespace("Multiprocessing");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]