From 2ca7b703fbc61b2e5399bdc1eb577a8948ae1cb9 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 25 Oct 2017 06:50:55 -0500 Subject: No implicit quit for Genode (#6515) --- compiler/cgen.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/cgen.nim') diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 367fced9a..56002459e 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -1013,10 +1013,9 @@ proc genMainProc(m: BModule) = ComponentConstruct = "void Libc::Component::construct(Libc::Env &env) {$N" & "\tgenodeEnv = &env;$N" & - "\tLibc::with_libc([&] () {$n\t" & + "\tLibc::with_libc([&] () {$N\t" & MainProcs & "\t});$N" & - "\tenv.parent().exit(0);$N" & "}$N$N" var nimMain, otherMain: FormatStr -- cgit 1.4.1-2-gfad0