Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored and EchoPouet committed Jun 13, 2020
1 parent 8e7d8e6 commit 15cfe9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
hangs if a process had both reads from stdin and writes (eg to stdout).

- The callback that is passed to `system.onThreadDestruction` must now be `.raises: []`.

- The callback that is assigned to `system.onUnhandledException` must now be `.gcsafe`.

- `osproc.execCmdEx` now takes an optional `input` for stdin.
- `osproc.execCmdEx` now takes an optional `input` for stdin, `workingDir` and `env`
Expand Down
2 changes: 1 addition & 1 deletion lib/system/excpt.nim
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ else:
proc stackTraceAvailable*(): bool = result = false

var onUnhandledException*: (proc (errorMsg: string) {.
nimcall.}) ## Set this error \
nimcall, gcsafe.}) ## Set this error \
## handler to override the existing behaviour on an unhandled exception.
##
## The default is to write a stacktrace to ``stderr`` and then call ``quit(1)``.
Expand Down
2 changes: 1 addition & 1 deletion lib/system/threads.nim
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ template afterThreadRuns() =
when not defined(boehmgc) and not hasSharedHeap and not defined(gogc) and not defined(gcRegions):
proc deallocOsPages() {.rtl, raises: [].}

proc threadTrouble() {.raises: [].}
proc threadTrouble() {.raises: [], gcsafe.}
## defined in system/excpt.nim

when defined(boehmgc):
Expand Down

0 comments on commit 15cfe9b

Please sign in to comment.