-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocaml: handle unexpected error cases from the notifications pipe
The `Lwt_unix.read` is supposed to return 0 for EOF and >0 for number of bytes read. Error results from the syscall are supposed to be handled by the library. However there is evidence that an error `-1` is leaking through, so add some logging and exit the process instead of spinning. Signed-off-by: David Scott <dave@recoil.org>
- Loading branch information
Showing
2 changed files
with
10 additions
and
1 deletion.
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