summaryrefslogtreecommitdiffstats
path: root/runtime/autoconf-find-task-pid.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoconf-find-task-pid.c')
-rw-r--r--runtime/autoconf-find-task-pid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/autoconf-find-task-pid.c b/runtime/autoconf-find-task-pid.c
new file mode 100644
index 00000000..549d5ac3
--- /dev/null
+++ b/runtime/autoconf-find-task-pid.c
@@ -0,0 +1,6 @@
+#include <linux/sched.h>
+
+void foo (pid_t k) {
+ struct task_struct *tsk = find_task_by_pid (k);
+ (void) tsk;
+}