mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 08:21:08 +00:00
parent
0a12e262ce
commit
d4499cba41
@ -972,7 +972,7 @@ namespace {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return noux_fd(new_fd->context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1034,7 +1034,7 @@ namespace {
|
|||||||
* Use new allocated number as name of file descriptor
|
* Use new allocated number as name of file descriptor
|
||||||
* duplicate.
|
* duplicate.
|
||||||
*/
|
*/
|
||||||
if (dup2(fd, new_fd)) {
|
if (dup2(fd, new_fd) == -1) {
|
||||||
PERR("Plugin::fcntl: dup2 unexpectedly failed");
|
PERR("Plugin::fcntl: dup2 unexpectedly failed");
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user