parent 78598e2b
......@@ -663,7 +663,11 @@ int open_at(int dfd, const char *path, unsigned int o_flags,
if (errno != ENOSYS)
return -errno;
return openat(dfd, path, o_flags, mode);
fd = openat(dfd, path, o_flags, mode);
if (fd < 0)
return -errno;
return move_fd(fd);
}
int fd_make_nonblocking(int fd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment