node.js backend doesn't exit if code doesn't spawn a server #73

Closed
alokmenghrajani opened this Issue Jul 20, 2012 · 3 comments

3 participants

@alokmenghrajani

If I simply write:
Debug.warning("Hi")

and run the code. The server echoes Hi, but then never quits.

This behavior makes it harder to write "shell scripts" in opa (e.g. a piece of code to populate the db).

@cedricss

What is the implementation of Debug.warning?
The server should quit.

If I simply write:

jlog("Hi")

then

opa test.opa --

the server does quit.

@alokmenghrajani

doesn't quit. I'm on macosx: Opa compiler (c) MLstate -- version 1.0.4 -- build 2403

@BourgerieQuentin
opalang member

Thanks Alok, for the report.

But this bug is already known and should be fixed on the next release (1.0.5).
The issue came from a toplevel setInterval on the cookies.nodejs code.

I'll close this issue as soon as the release is done.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment