This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
signal handling (newbie question)
- To: gnu-win32 at cygnus dot com
- Subject: signal handling (newbie question)
- From: Prof John Gough <gough at fit dot qut dot edu dot au>
- Date: Wed, 30 Apr 1997 11:51:55 +1000 (EST)
Hi folks
sorry if this is a silly question, but I am porting of the gardens point
compilers --
http://sky.fit.qut.edu.au/CompSci/PLAS/GPM/
to cygwin. Everything works fine, except for that part of our
runtime-support provided error reporting which requires trap handling.
Soon as I get this going I will release the new versions.
If someone can tell me how to get the following canonical example to work,
I can take it from there. Currently it just hangs in the system provided
exception handler --
(sigtest.exe 1000) In cygwin_except_handler
/* example of using simple signal handling */
#include <stdio.h>
#include <signal.h>
static void gotcha(int i)
{
(void) signal(SIGSEGV,SIG_DFL);
printf("gotcha caught one\n");
exit(1);
}
int main(void)
{
int i, *p = 0;
(void) signal(SIGSEGV,gotcha);
i = *p;
}
Many of our versions use sigaction rather than signal. This doesn't
work either.
Thanx in advance.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
K John Gough Internet: j.gough@qut.edu.au
http://www.dstc.qut.edu.au/~gough/
Automata _--_|\ Faculty of Information Technology
rules OK / QUT Queensland University of Technology
\_.--._/ Box 2434 Brisbane 4001 AUSTRALIA
v Phone: +61 7 3864-2111
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".