forked from rebolsource/r3
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: unifying return and error handling from the original `access-os…
…` function Instead of `0` it returns `true` as a result of successful `set` operation Instead of returning none, it throws `not supported on your system` error when return value is of type OS_ENA It throws error when any other error happen. So for example on Windows it looks like: ``` >> access-os/set 'pid 33488 ;<-- terminates process == true >> access-os/set 'pid 33488 ** Access error: process not found: 33488 ** Where: access-os ** Near: access-os/set 'pid 33488 >> access-os 'euid ** Internal error: euid not supported on your system ** Where: access-os ** Near: access-os 'euid ```
- Loading branch information
Showing
1 changed file
with
40 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters