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