What does NTSTATUS 0xC000013A (STATUS_CONTROL_C_EXIT) mean?

 
Previous Next
STATUS_ENTRYPOINT_NOT_FOUND STATUS_LOCAL_DISCONNECT

STATUS_CONTROL_C_EXIT

The console control path terminated the application after CTRL+C

Console applications can install control handlers with SetConsoleCtrlHandler. When a CTRL+C event reaches a process and the control path results in termination, Windows reports STATUS_CONTROL_C_EXIT as the process termination status. This is different from an access violation or explicit application error code.

Inspect the console control handler, process-group arrangement and shutdown ordering. Handler code runs under strict timing and lifecycle constraints; long cleanup should be coordinated with normal worker shutdown rather than assuming the console handler can safely perform every blocking operation. When a supervisor sees this exit status, preserve the originating control event instead of classifying it as a crash.

What to inspect

  • Record whether CTRL+C was generated by a console user, supervisor, or process-group control event.
  • Trace installed control handlers and whether one elected to continue or terminate.
  • Move complex cleanup to coordinated shutdown logic and preserve this exit reason in process monitoring.

References


Looking for a different code? Search another status or error code.