summaryrefslogtreecommitdiffstats
path: root/cad/oregano/files/patch-src__sim-engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'cad/oregano/files/patch-src__sim-engine.c')
-rw-r--r--cad/oregano/files/patch-src__sim-engine.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/cad/oregano/files/patch-src__sim-engine.c b/cad/oregano/files/patch-src__sim-engine.c
new file mode 100644
index 000000000..142c45f5b
--- /dev/null
+++ b/cad/oregano/files/patch-src__sim-engine.c
@@ -0,0 +1,22 @@
+--- src/sim-engine.c.orig Wed May 24 14:16:30 2006
++++ src/sim-engine.c Wed May 24 21:39:29 2006
+@@ -268,9 +268,9 @@
+ /* TODO Would be recomendable to use pthread? */
+ engine->child_pid = fork();
+ if (engine->child_pid == 0) {
+- setpgrp ();
++ setpgrp(0, getpid());
+ /* Now oregano.simtype has gnucap or ngspice */
+- gchar *simexec = oregano.simexec;
++ { gchar *simexec = oregano.simexec;
+ /* !!!!!!!!!!! "-s" "-n" */
+ gchar *args[4] = { simexec, oregano.simtype, (gchar *)netlist, NULL };
+
+@@ -300,6 +300,7 @@
+ * path y todo
+ */
+ execvp(simexec, args);
++ }
+
+ /* We should never get here. */
+ g_warning ("Error executing the simulation engine.");