Merge pull request #917 from zielmicha/vfork

osproc: Raise exception if execv fails in child process
This commit is contained in:
Andreas Rumpf 2014-02-23 19:49:19 +01:00
commit 46967f921a
3 changed files with 202 additions and 84 deletions

View file

@ -2066,6 +2066,7 @@ proc pthread_spin_unlock*(a1: ptr Tpthread_spinlock): cint {.
proc pthread_testcancel*() {.importc, header: "<pthread.h>".}
proc exitnow*(code: int): void {.importc: "_exit", header: "<unistd.h>".}
proc access*(a1: cstring, a2: cint): cint {.importc, header: "<unistd.h>".}
proc alarm*(a1: cint): cint {.importc, header: "<unistd.h>".}
proc chdir*(a1: cstring): cint {.importc, header: "<unistd.h>".}