https://bugs.kde.org/show_bug.cgi?id=417906
--- Comment #3 from Tom Hughes <t...@compton.nu> --- This seems to do the job: #define _GNU_SOURCE #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <sys/syscall.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> int main(int argc, char **argv) { int pid; int fd; if ((pid = syscall(SYS_clone, CLONE_VFORK | CLONE_PIDFD, NULL, &fd, NULL, 0)) < 0) { perror("clone"); } else if (pid > 0) { printf("pidfd = %d\n", fd); waitpid(pid, NULL, 0); } exit(0); } -- You are receiving this mail because: You are watching all bug changes.