--- freem/src/sighnd.c 2025/03/24 00:38:40 1.5 +++ freem/src/sighnd.c 2025/04/10 01:24:38 1.7 @@ -1,5 +1,5 @@ /* - * $Id: sighnd.c,v 1.5 2025/03/24 00:38:40 snw Exp $ + * $Id: sighnd.c,v 1.7 2025/04/10 01:24:38 snw Exp $ * FreeM signal handlers * * @@ -24,6 +24,12 @@ * along with FreeM. If not, see . * * $Log: sighnd.c,v $ + * Revision 1.7 2025/04/10 01:24:38 snw + * Remove C++ style comments + * + * Revision 1.6 2025/03/24 04:15:25 snw + * Create dummy onwinch signal handler for OS/2 + * * Revision 1.5 2025/03/24 00:38:40 snw * Fix termios junk in sighnd.c * @@ -87,7 +93,7 @@ void sig_attach(int sig, void *handler) #if !defined(__AMIGA) sigaction (sig, &act, NULL); #else - //TODO: fill in for m68k-amigaos + /* TODO: fill in for m68k-amigaos */ #endif } @@ -139,13 +145,20 @@ void onwinch (void) return; } +#else +void onwinch (void) +{ + sig_attach (SIGWINCH, &onwinch); + + return; +} #endif 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);