mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-25 21:16:38 +03:00
Use common signal handler for SIGPIPE
This commit is contained in:
parent
e18c57cfd3
commit
2e43a4d696
@ -279,6 +279,7 @@ void signal_handler(int signal)
|
||||
case SIGFPE: text = "SIGFPE"; break;
|
||||
case SIGQUIT: text = "SIGQUIT"; break;
|
||||
case SIGTERM: text = "SIGTERM"; break;
|
||||
case SIGPIPE: text = "SIGPIPE"; break;
|
||||
}
|
||||
if (signal != SIGTERM)
|
||||
on_assert_failed(text);
|
||||
@ -540,7 +541,7 @@ int main(int argc, char* argv[])
|
||||
signal(SIGFPE, signal_handler);
|
||||
signal(SIGQUIT, signal_handler);
|
||||
signal(SIGTERM, signal_handler);
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
signal(SIGPIPE, signal_handler);
|
||||
|
||||
Vector<String> params;
|
||||
for (size_t i = 1; i < argc; ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user