--- freem/src/sighnd.c 2025/04/15 16:49:36 1.8 +++ freem/src/sighnd.c 2025/04/30 20:03:09 1.10 @@ -1,5 +1,5 @@ /* - * $Id: sighnd.c,v 1.8 2025/04/15 16:49:36 snw Exp $ + * $Id: sighnd.c,v 1.10 2025/04/30 20:03:09 snw Exp $ * FreeM signal handlers * * @@ -24,6 +24,12 @@ * along with FreeM. If not, see . * * $Log: sighnd.c,v $ + * Revision 1.10 2025/04/30 20:03:09 snw + * Work on entryref parser + * + * Revision 1.9 2025/04/15 18:39:20 snw + * Remove extraneous CRLFs in logprintf calls + * * Revision 1.8 2025/04/15 16:49:36 snw * Make use of logprintf throughout codebase * @@ -160,7 +166,7 @@ void onintr (void) { sig_attach (SIGINT, &onintr); /* restore handler */ - /* printf ("\r\nSIGINT codptr = '%s'\r\n", codptr); */ + /* printf ("\r\nSIGINT codptr = '%s'\r\n", codptr); */ if (first_process) { job_request_stop (pid); @@ -187,10 +193,16 @@ void onintr (void) } - if (breakon) { + + + if (breakon) { merr_raise (INRPT); inrpt_after_async = TRUE; if (forsw) sigint_in_for = TRUE; + + if (usermode == 1) { + debug_mode = TRUE; + } } else { zcc = TRUE; @@ -294,7 +306,7 @@ void onhup (void) if (run_daemon == TRUE) { - logprintf (FM_LOG_INFO, "environment: daemon received SIGHUP\r\n"); + logprintf (FM_LOG_INFO, "environment: daemon received SIGHUP"); sig_attach (SIGHUP, &onhup); /* restore handler */