Skip to content
Snippets Groups Projects
Commit 75b871a7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Restore console to "cooked" mode before daemonizing().

Previously, the console would be left in "raw" mode after invoking
'jsexec -d <module>'.
parent 6eac2079
No related branches found
No related tags found
No related merge requests found
......@@ -1431,6 +1431,7 @@ int main(int argc, char **argv, char** env)
#if defined(__unix__)
if(daemonize) {
fprintf(statfp,"\nRunning as daemon\n");
cooked_tty();
if(daemon(TRUE,FALSE)) { /* Daemonize, DON'T switch to / and DO close descriptors */
fprintf(statfp,"!ERROR %d (%s) running as daemon\n", errno, strerror(errno));
daemonize=FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment