Oh no! Some styles failed to load. 😵 Please try reloading this page
Menu â–¾ â–´

#1783 Fix Ctrl-C Handler

MSYS
open
None
Task
none
Unknown
True
2013-02-13
2006-12-29
Howard Chu
No

This is an improved patch for propagating Ctrl-C/Ctrl-Break events from MSYS to regular Windows apps. It was originally posted here
http://thread.gmane.org/gmane.comp.gnu.mingw.msys/3793/focus=3797
This patch also supersedes https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1333217&group_id=2435

This code assumes that the target program has been linked with an MSVC
CRT DLL. If it can find one of these DLLs attached to the target, then
it will find the raise() entry point in the DLL, and use that to send
signals to the target. One advantage of this approach is that it will
work even if the target program doesn't use a Console. The obvious
disadvantage is that it's pretty invasive. If there's no MSVCRT, then it
does nothing.

Related

Issues: #845

Discussion

  • Howard Chu

    Howard Chu - 2006-12-29

    Patch for winsup/cygwin/...

     
  • Earnie Boyd

    Earnie Boyd - 2012-07-31
    • assigned_to: earnie --> cstrauss
     
  • Earnie Boyd

    Earnie Boyd - 2012-07-31

    Cesar, is this old patch worth hanging on to?

     
  • Howard Chu

    Howard Chu - 2012-07-31

    I thought we committed this ages ago. No? It would need some updating to handle win64 processes...

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-13

    Ticket moved from /p/mingw/patches/316/

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-13
    • labels: msys -->
    • milestone: --> MSYS
    • type: --> Task
    • resolution: --> none
    • category: --> Unknown
    • patch_attached: --> True