From 429328ab499e451ffac17c415a031217d302b9bc Mon Sep 17 00:00:00 2001 From: Li Jie Date: Mon, 29 Jun 2015 22:10:13 +0800 Subject: [PATCH] Updated Pygments issues (markdown) --- Pygments-issues.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Pygments-issues.md b/Pygments-issues.md index 7d32a93..21b6d16 100644 --- a/Pygments-issues.md +++ b/Pygments-issues.md @@ -19,4 +19,16 @@ proc suspend(p: Process) = if kill(p.id, SIGSTOP) != 0'i32: raiseOsError(osLastError()) ``` -`'i32` and after should not be red. \ No newline at end of file +```nimrod + proc terminate(p: Process) = + if kill(p.id, SIGTERM) != 0'i32: + raiseOsError(osLastError()) + + proc kill(p: Process) = + if kill(p.id, SIGKILL) != 0'i32: + raiseOsError(osLastError()) +``` + +`'i32` and after should not be red. + +See also https://github.com/nim-lang/Nim/blob/2297a1aa6048fcbcffca4e2c2e4ede275261e83d/lib/pure/osproc.nim \ No newline at end of file