Hi all, someone can tell me where i can find an example of this kind of signal handler?
i try to use fenv.h but on cygwin doesn't work (cygwin don't have it) and this program must run on cygwin and on solaris.
i try also with SIGFPE, but when i test a div by zero, he only report this:

[main] memory2 3456 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)
Segmentation fault (core dumped)

Recommended Answers

All 2 Replies

Does cygwin have any kinda support for signal handling? If yes d'u know which is the file that defines teh signals... ?

with signal.h i can catch SIGFPE, but how can i make the handler?
I have the problem of catch Overflow, underflow and div by zero, and for all i must do different operation.
If u give me a skeleton of the handler i can make it. i don't know where begin with it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.