Skip to content

Commit

Permalink
lin_xs_cli: run event loop after calling main()
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Dec 26, 2019
1 parent 98eecdd commit f690418
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xs/platforms/lin_xs_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ int main(int argc, char* argv[]) // here

printf("lin_xs_cli: invoking main(argv)\n");
xsCallFunction1(xsVar(1), xsUndefined, xsVar(0));
printf(" lin_xs_cli: invoked\n");
printf(" lin_xs_cli: invoked; entering event loop\n");

GMainLoop *loop = g_main_loop_new(g_main_context_default(), FALSE);
g_main_loop_run(loop); // ISSUE: how to exit when quiescent?
g_main_loop_unref(loop);
}
xsCatch {
xsStringValue message = xsToString(xsException);
Expand Down

0 comments on commit f690418

Please sign in to comment.