Skip to content
Snippets Groups Projects
Commit 8cdd0422 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 74b4a948
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #640 passed
......@@ -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.
Please register or to comment