From 15a78acfc45556cf73264e1a20af1e0894d5aaf1 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Fri, 20 Apr 2018 03:08:22 +0300 Subject: Catch SIGINT and ask to remove build dependencies --- src/main.nim | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/main.nim') diff --git a/src/main.nim b/src/main.nim index 685b9d3..045b44e 100644 --- a/src/main.nim +++ b/src/main.nim @@ -193,11 +193,7 @@ proc handleVersion(): int = echo(' '.repeat(23), "Copyright (C) ", copyright) pacmanExec(false, false, ("V", none(string), ArgumentType.short)) -proc signal(sign: cint, handler: pointer): pointer - {.importc, header: "".} - discard setlocale(LC_ALL, "") -discard signal(SIGINT, cast[pointer](SIG_DFL)) template withErrorHandler(propColor: Option[bool], T: typedesc, body: untyped): tuple[success: Option[T], code: int] = -- cgit v1.2.3-70-g09d2