This commit is contained in:
Andreas Rumpf 2020-05-16 17:03:25 +02:00 • committed by GitHub
commit 7f377da1d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@
hangs if a process had both reads from stdin and writes (eg to stdout). 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 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.
- `osproc.execCmdEx` now takes an optional `input` for stdin, `workingDir` and `env` - `osproc.execCmdEx` now takes an optional `input` for stdin, `workingDir` and `env`

View file

@ -345,7 +345,7 @@ else:
proc stackTraceAvailable*(): bool = result = false proc stackTraceAvailable*(): bool = result = false
var onUnhandledException*: (proc (errorMsg: string) {. var onUnhandledException*: (proc (errorMsg: string) {.
nimcall.}) ## Set this error \ nimcall, gcsafe.}) ## Set this error \
## handler to override the existing behaviour on an unhandled exception. ## handler to override the existing behaviour on an unhandled exception.
## ##
## The default is to write a stacktrace to ``stderr`` and then call ``quit(1)``. ## The default is to write a stacktrace to ``stderr`` and then call ``quit(1)``.

View file

@ -107,7 +107,7 @@ template afterThreadRuns() =
when not defined(boehmgc) and not hasSharedHeap and not defined(gogc) and not defined(gcRegions): when not defined(boehmgc) and not hasSharedHeap and not defined(gogc) and not defined(gcRegions):
proc deallocOsPages() {.rtl, raises: [].} proc deallocOsPages() {.rtl, raises: [].}
proc threadTrouble() {.raises: [].} proc threadTrouble() {.raises: [], gcsafe.}
## defined in system/excpt.nim ## defined in system/excpt.nim
when defined(boehmgc): when defined(boehmgc):