diff options
author | François Degros <fdegros@chromium.org> | 2019-11-05 13:18:24 +1100 |
---|---|---|
committer | François Degros <fdegros@chromium.org> | 2019-11-21 11:25:12 +1100 |
commit | 664eba707187fb623892b4ae6cd6689f1015e738 (patch) | |
tree | 0400a91035ac7abb5db0398cc8da7f39984b46c9 /libminijail-private.h | |
parent | 080ceef61885e2c2666a6b5b8a850e304d67bf90 (diff) | |
download | minijail-664eba707187fb623892b4ae6cd6689f1015e738.tar.gz |
Fix crash when subprocess dieslinux-v11
Handle race condition gracefully, and prevent process from crashing when
subprocess dies before minijail_to_fd() finishes.
Bug: chromium:1020571
Test: Unit tests pass
Change-Id: I8ba4f7febe82ef0cb9aff2a3f198da4c51532dd6
Diffstat (limited to 'libminijail-private.h')
-rw-r--r-- | libminijail-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libminijail-private.h b/libminijail-private.h index 9b81725..503f09b 100644 --- a/libminijail-private.h +++ b/libminijail-private.h @@ -73,7 +73,7 @@ extern int minijail_from_fd(int fd, struct minijail *j); * @j minijail to send * @fd fd to send over * - * Returns 0 on success. + * Returns 0 on success, or a negative error code on error. */ extern int minijail_to_fd(struct minijail *j, int fd); |