summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index 91c159229b..c785fe0dd2 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -537,7 +537,11 @@ CFrame::CFrame(wxFrame* parent, wxWindowID id, const wxString& title, const wxPo
#if defined(__unix__) || defined(__unix) || defined(__APPLE__)
struct sigaction sa;
- sa.sa_handler = [](int unused) { s_shutdown_signal_received.Set(); };
+ sa.sa_handler = [](int unused) {
+ char message[] = "A signal was received. A second signal will force Dolphin to stop.\n";
+ write(STDERR_FILENO, message, sizeof(message));
+ s_shutdown_signal_received.Set();
+ };
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_RESETHAND;
sigaction(SIGINT, &sa, nullptr);