|
|
| version 1.7, 2025/04/10 01:24:38 | version 1.12, 2026/01/07 19:51:33 |
|---|---|
| Line 24 | Line 24 |
| * along with FreeM. If not, see <https://www.gnu.org/licenses/>. | * along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
| * | * |
| * $Log$ | * $Log$ |
| * Revision 1.12 2026/01/07 19:51:33 snw | |
| * Fix segfault in reverse $QUERY | |
| * | |
| * Revision 1.11 2025/05/01 21:02:31 snw | |
| * Documentation updates | |
| * | |
| * 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 | |
| * | |
| * Revision 1.7 2025/04/10 01:24:38 snw | * Revision 1.7 2025/04/10 01:24:38 snw |
| * Remove C++ style comments | * Remove C++ style comments |
| * | * |
| Line 63 | Line 78 |
| # endif | # endif |
| # define termio termios | # define termio termios |
| # else | # else |
| # if !defined(MSDOS) | # if !defined(MSDOS) && !defined(__linux__) |
| # include <termio.h> | # include <termio.h> |
| # else | |
| # include <termios.h> | |
| # endif | # endif |
| # endif | # endif |
| #else | #else |
| Line 79 | Line 96 |
| #include "events.h" | #include "events.h" |
| #include "jobtab.h" | #include "jobtab.h" |
| #include "shmmgr.h" | #include "shmmgr.h" |
| #include "log.h" | |
| void m_log (int, const char *); | |
| int pending_signal_type = -1; | int pending_signal_type = -1; |
| void sig_attach(int sig, void *handler) | void sig_attach(int sig, void *handler) |
| Line 158 void onintr (void) | Line 174 void onintr (void) |
| { | { |
| sig_attach (SIGINT, &onintr); /* restore handler */ | 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) { | if (first_process) { |
| job_request_stop (pid); | job_request_stop (pid); |
| Line 184 void onintr (void) | Line 200 void onintr (void) |
| } | } |
| } | } |
| if (breakon) { | |
| if (breakon) { | |
| merr_raise (INRPT); | merr_raise (INRPT); |
| inrpt_after_async = TRUE; | inrpt_after_async = TRUE; |
| if (forsw) sigint_in_for = TRUE; | if (forsw) sigint_in_for = TRUE; |
| if (usermode == 1) { | |
| debug_mode = TRUE; | |
| } | |
| } | } |
| else { | else { |
| zcc = TRUE; | zcc = TRUE; |
| Line 292 void onhup (void) | Line 311 void onhup (void) |
| if (run_daemon == TRUE) { | if (run_daemon == TRUE) { |
| fprintf (stderr, "freem: daemon received SIGHUP\r\n"); | logprintf (FM_LOG_INFO, "environment: daemon received SIGHUP"); |
| m_log (1, "freem: daemon received SIGHUP"); | |
| sig_attach (SIGHUP, &onhup); /* restore handler */ | sig_attach (SIGHUP, &onhup); /* restore handler */ |