Typo: subproccloneFunc -> subprocCloneFunc
This commit is contained in:
parent
2a8faeba7a
commit
c3462e2529
@ -292,7 +292,7 @@ static bool subprocInitParent(struct nsjconf_t *nsjconf, pid_t pid, int pipefd)
|
|||||||
|
|
||||||
static uint8_t subprocCloneStack[PTHREAD_STACK_MIN * 2];
|
static uint8_t subprocCloneStack[PTHREAD_STACK_MIN * 2];
|
||||||
|
|
||||||
static int subproccloneFunc(void *arg)
|
static int subprocCloneFunc(void *arg)
|
||||||
{
|
{
|
||||||
jmp_buf *env_ptr = (jmp_buf *) arg;
|
jmp_buf *env_ptr = (jmp_buf *) arg;
|
||||||
longjmp(*env_ptr, 1);
|
longjmp(*env_ptr, 1);
|
||||||
@ -310,7 +310,7 @@ pid_t subprocClone(uintptr_t flags)
|
|||||||
if (setjmp(env) == 0) {
|
if (setjmp(env) == 0) {
|
||||||
void *stack_mid = &subprocCloneStack[sizeof(subprocCloneStack) / 2];
|
void *stack_mid = &subprocCloneStack[sizeof(subprocCloneStack) / 2];
|
||||||
// Parent
|
// Parent
|
||||||
return clone(subproccloneFunc, stack_mid, flags, &env, NULL, NULL);
|
return clone(subprocCloneFunc, stack_mid, flags, &env, NULL, NULL);
|
||||||
}
|
}
|
||||||
// Child
|
// Child
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user