Bug 88196 - Add signal handler to managed projects on Windows
Add signal handler to managed projects on Windows
Status: CLOSED WONTFIX
Product: cnd
Classification: Unclassified
Component: Project
5.x
All All
: P1 (vote)
: 6.x
Assigned To: _ gordonp
issues@cnd
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-30 03:47 UTC by Nikolay Molchanov
Modified: 2007-12-27 13:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Molchanov 2006-10-30 03:47:53 UTC
We have to add the following code to all managed projects (it is needed 
for multiple ability to interrupt programs on Windows/Cygwin):

#ifdef __CYGWIN__
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *             Windows Cygwin SIGTSTP Signal Handler             *
 * This code is not used by the program.  It is used by debugger *
 * to implement execution interruption in Cygwin environment.    *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include <signal.h>
void gdb_set_SIGTSTP_signal_handler();
void gdb_SIGTSTP_signal_handler(int signal) {
    gdb_set_SIGTSTP_signal_handler();
}
void gdb_set_SIGTSTP_signal_handler() {
    signal(SIGTSTP, gdb_SIGTSTP_signal_handler);
}
#endif /* __CYGWIN__ */

See IZ 86904 for details.
Comment 1 _ gordonp 2006-10-30 20:16:48 UTC
I'll be exploring alternate solutions to fix 86904, and since this was a
proposed partial solution to 86904 I'm closing this as wontfix.

Adding a signal handler is only a partial solution to the problem of making
the Paus button work on Windows. If we assume that 20% of cnd projects are
managed and 80% are Makefile projects (projects with existing Makefile), then
this would only solve the problem 20% of the time. We need to find a way to
solve the problem 100% of the time.
Comment 2 Nikolay Molchanov 2006-10-30 21:08:04 UTC
I think on Windows 99% of users will use managed projects, because it is 
standard practice there. On Solaris and Linux systems people prefer unmanaged 
projects, so it could be true that only 20% will use managed projects there, 
but I already fixed all known problems with "Pause" on Solaris and Linux, so 
there is only 1% developers who will use unmanaged projects on Windows and 
only 0.1% of them will notice a problem with second interrupt.



By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo