tree-wide: some O_NDELAY → O_NONBLOCK fixes

Somehow the coccinelle script misses these, hence fix them manually.
This commit is contained in:
Lennart Poettering
2018-05-31 12:04:39 +02:00
parent 642b59ff40
commit 669fc4e5c5
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1952,7 +1952,7 @@ static int setup_kmsg(int kmsg_socket) {
if (r < 0)
return r;
fd = open(from, O_RDWR|O_NDELAY|O_CLOEXEC);
fd = open(from, O_RDWR|O_NONBLOCK|O_CLOEXEC);
if (fd < 0)
return log_error_errno(errno, "Failed to open fifo: %m");
@@ -4478,7 +4478,7 @@ int main(int argc, char *argv[]) {
isatty(STDIN_FILENO) > 0 &&
isatty(STDOUT_FILENO) > 0;
master = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC|O_NDELAY);
master = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK);
if (master < 0) {
r = log_error_errno(errno, "Failed to acquire pseudo tty: %m");
goto finish;