This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
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.
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.
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.