mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8213017: jspawnhelper: need to handle pipe write failure when sending return code
Reviewed-by: alanb
This commit is contained in:
parent
91a2c2e340
commit
d153c9c259
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,10 @@ extern int errno;
|
|||
#define ERR_ARGS 3
|
||||
|
||||
void error (int fd, int err) {
|
||||
write (fd, &err, sizeof(err));
|
||||
if (write (fd, &err, sizeof(err)) != sizeof(err)) {
|
||||
/* Not sure what to do here. I have no one to speak to. */
|
||||
exit(0x80 + err);
|
||||
}
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue