diff options
author | kitsunyan | 2018-04-20 00:08:22 +0000 |
---|---|---|
committer | kitsunyan | 2018-04-20 00:08:22 +0000 |
commit | 15a78acfc45556cf73264e1a20af1e0894d5aaf1 (patch) | |
tree | 62298e9123a2a25a226185387f936b0ec3897c43 /src/main.nim | |
parent | edd51c66aa5667135bdb9b82b9ab9f4a6fe5ba6a (diff) |
Catch SIGINT and ask to remove build dependencies
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 4 |
1 files changed, 0 insertions, 4 deletions
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: "<signal.h>".} - 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] = |