kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 0268a0ae0af7dd96f0b4cdd43ed9c1b278fd0558
parent bb2f0d8b52630a8b8b640edee18e83dd7b8946d3
Author: Joris Vink <joris@coders.se>
Date:   Tue, 14 Jul 2020 15:38:54 +0200

Wrap certain syscalls inside of an ifdef.

Makes kore with python and acme work on my pinebook pro.

Diffstat:
src/python.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -214,8 +214,18 @@ static PyMemAllocatorEx allocator = { static struct sock_filter filter_python[] = { /* Required for kore.proc */ +#if defined(SYS_dup2) KORE_SYSCALL_ALLOW(dup2), +#endif +#if defined(SYS_dup3) + KORE_SYSCALL_ALLOW(dup3), +#endif +#if defined(SYS_pipe) KORE_SYSCALL_ALLOW(pipe), +#endif +#if defined(SYS_pipe2) + KORE_SYSCALL_ALLOW(pipe2), +#endif KORE_SYSCALL_ALLOW(wait4), KORE_SYSCALL_ALLOW(execve),