This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changes the 32 bit signal handler to use the previous endianness | |
of the process, instead of always using big endian. Removes dependency | |
on big endian to allow 32 bit vDSO to be built even on 64 bit LE kernels. | |
--- a/arch/powerpc/kernel/signal_32.c | |
+++ b/arch/powerpc/kernel/signal_32.c | |
@@ -1287,8 +1287,9 @@ int handle_signal32(struct ksignal *ksig, sigset_t *oldset, | |
regs->gpr[3] = ksig->sig; | |
regs->gpr[4] = (unsigned long) sc; | |
regs->nip = (unsigned long) (unsigned long)ksig->ka.sa.sa_handler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import os | |
s1, s2 = socket.socketpair() | |
if os.fork() == 0: | |
os.execve("/usr/bin/node", ["/usr/bin/node", "./child_js_module"], {'NODE_CHANNEL_FD': str(s2.fileno())}); | |
else: | |
s1.send("\"JSON string here\"\n"); | |
data = s1.recv(4096); |