-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcontainer: Bail on close(2) failures
Don't ignore close(2) return code, rather bail if there is any unexpected failures. By checking the close return code we make sure we don't introduce the same bug (closing an already closed fd) I've fixed in the previous patch. As a side note, we are not handling in this patch when close(2) returns EINTR and the go runtime, since go 1.14, sends SIGURG to preempt goroutines. This should not happen here though, as nsenter is guaranteed to be executed before the go runtime starts. Signed-off-by: Rodrigo Campos <[email protected]>
- Loading branch information
Showing
1 changed file
with
22 additions
and
6 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