-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdout/2,3, stderr/2,3: return list of binaries
Change stdout/2,3 and stderr/2,3 to return a list of values as discussed in: #3 The spec is changed from: % from -spec stdout(alcove_drv:ref(),[pid_t()]) -> 'false' | binary(). % to: [] indicates no stdout -spec stdout(alcove_drv:ref(),[pid_t()]) -> [binary()]. In the case where an unreponsive child causes the pipe buffer between the alcove parent process and the child to fill up, stdout/2,3 and stderr/2,3 will now both crash. If the caller wants to handle this situation, e.g., to wait and retry, the `alcove_pipe` message can be processed directly from the mailbox. Thanks @neeraj9!
- Loading branch information
Showing
4 changed files
with
40 additions
and
26 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
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