Thread (10 messages) flat view 10 messages, 2 authors, 2020-09-01

Re: [PATCH 1/4] pidfd: support PIDFD_NONBLOCK in pidfd_open()

From: Oleg Nesterov <oleg@redhat.com>
Date: 2020-09-01 16:23:40
Also in: linux-kselftest, lkml

On 08/31, Christian Brauner wrote:
quoted hunk ↗ jump to hunk
--- /dev/null
+++ b/include/uapi/linux/pidfd.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+
+#ifndef _UAPI_LINUX_PIDFD_H
+#define _UAPI_LINUX_PIDFD_H
+
+#include <linux/types.h>
+#include <linux/fcntl.h>
+
+/* Flags for pidfd_open().  */
+#define PIDFD_NONBLOCK O_NONBLOCK
+
+#endif /* _UAPI_LINUX_PIDFD_H */
Why? Can't we simply use O_NONBLOCK ?

Oleg.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help