Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 915695 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/3rdparty/forkfd/forkfd_linux.c (-2 / +2 lines)
Lines 28-33 Link Here
28
28
29
#include "forkfd.h"
29
#include "forkfd.h"
30
30
31
#include <bits/sigstack.h>
31
#include <errno.h>
32
#include <errno.h>
32
#include <fcntl.h>
33
#include <fcntl.h>
33
#include <limits.h>
34
#include <limits.h>
Lines 157-163 static int system_forkfd_pidfd_set_flags(int pidfd, int flags) Link Here
157
158
158
int system_vforkfd(int flags, pid_t *ppid, int (*childFn)(void *), void *token, int *system)
159
int system_vforkfd(int flags, pid_t *ppid, int (*childFn)(void *), void *token, int *system)
159
{
160
{
160
    __attribute__((aligned(64))) char childStack[4096];
161
    __attribute__((aligned(64))) char childStack[SIGSTKSZ];
161
    pid_t pid;
162
    pid_t pid;
162
    int pidfd;
163
    int pidfd;
163
    unsigned long cloneflags = CLONE_PIDFD | CLONE_VFORK | CLONE_VM | SIGCHLD;
164
    unsigned long cloneflags = CLONE_PIDFD | CLONE_VFORK | CLONE_VM | SIGCHLD;
164
- 

Return to bug 915695