-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update tests to Aff * Add stdin write test * Fix exit handler's string value * Update module import to include 'node:' * Fix path of stdin test * Add missing FFI * Drop `ipc` on sync fns (error); inline safeStdio * Fix `fromKillSignalImpl` FFI arg order * Update tests * Add changelog entry
- Loading branch information
1 parent
4d27b66
commit 8e031fe
Showing
7 changed files
with
144 additions
and
75 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export const showKillSignal = (ks) => ks + ""; | ||
export const showShell = (shell) => shell + ""; | ||
export const fromKillSignalImpl = (left, right, sig) => { | ||
export const fromKillSignalImpl = (fromInt, fromStr, sig) => { | ||
const ty = typeof sig; | ||
if (ty === "number") return right(sig | 0); | ||
if (ty === "string") return left(sig); | ||
if (ty === "number") return fromInt(sig | 0); | ||
if (ty === "string") return fromStr(sig); | ||
throw new Error("Impossible. Got kill signal that was neither int nor string: " + sig); | ||
}; |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
sleep 2 | ||
echo "$1" | ||
|
||
echo "Done" |