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
Reply to
Christian Brauner, 2020-08-31
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.
Thread (10 messages) 10 messages, 2 authors, last reply 2020-09-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help