mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
Merge
This commit is contained in:
commit
0e89e92d04
1 changed files with 3 additions and 1 deletions
|
@ -336,7 +336,9 @@ extern "C" {
|
||||||
// Return 0 (success) + file descriptor, or non-0 (error)
|
// Return 0 (success) + file descriptor, or non-0 (error)
|
||||||
if (res == 0) {
|
if (res == 0) {
|
||||||
door_desc_t desc;
|
door_desc_t desc;
|
||||||
desc.d_attributes = DOOR_DESCRIPTOR;
|
// DOOR_RELEASE flag makes sure fd is closed after passing it to
|
||||||
|
// the client. See door_return(3DOOR) man page.
|
||||||
|
desc.d_attributes = DOOR_DESCRIPTOR | DOOR_RELEASE;
|
||||||
desc.d_data.d_desc.d_descriptor = return_fd;
|
desc.d_data.d_desc.d_descriptor = return_fd;
|
||||||
door_return((char*)&res, sizeof(res), &desc, 1);
|
door_return((char*)&res, sizeof(res), &desc, 1);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue