aboutsummaryrefslogtreecommitdiffstats
path: root/mempodipper.c
diff options
context:
space:
mode:
Diffstat (limited to 'mempodipper.c')
-rw-r--r--mempodipper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mempodipper.c b/mempodipper.c
index 54dd26d..e17c069 100644
--- a/mempodipper.c
+++ b/mempodipper.c
@@ -102,7 +102,9 @@ unsigned long ptrace_address()
{
int fd[2];
printf("[+] Creating ptrace pipe.\n");
- pipe2(fd, O_NONBLOCK);
+ pipe(fd);
+ fcntl(fd[0], F_SETFL, O_NONBLOCK);
+
printf("[+] Forking ptrace child.\n");
int child = fork();
if (child) {