aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index a8a2efbc8a..0b1f650827 100644
--- a/src/main.c
+++ b/src/main.c
@@ -47,6 +47,7 @@
#include "version.h"
#include "window.h"
#include "os/os.h"
+#include "os/signal.h"
/* Maximum number of commands from + or -c arguments. */
#define MAX_ARG_CMDS 10
@@ -2167,9 +2168,7 @@ mainerr (
char_u *str /* extra argument or NULL */
)
{
-#if defined(UNIX) || defined(__EMX__) || defined(VMS)
- reset_signals(); /* kill us with CTRL-C here, if you like */
-#endif
+ signal_stop(); /* kill us with CTRL-C here, if you like */
mch_errmsg(longVersion);
mch_errmsg("\n");
@@ -2214,9 +2213,7 @@ static void usage(void)
N_("-q [errorfile] edit file with first error")
};
-#if defined(UNIX) || defined(__EMX__) || defined(VMS)
- reset_signals(); /* kill us with CTRL-C here, if you like */
-#endif
+ signal_stop(); /* kill us with CTRL-C here, if you like */
mch_msg(longVersion);
mch_msg(_("\n\nusage:"));