1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$FreeBSD$
--- src/libsoup/soup-socket.c 2001/09/28 12:13:58 1.1
+++ src/libsoup/soup-socket.c 2001/09/28 09:15:15
@@ -783,7 +783,7 @@
signal (SIGCHLD, SIG_IGN);
- if (ptrace (PTRACE_ATTACH, getppid (), NULL, NULL) == -1) {
+ if (ptrace (PT_ATTACH, getppid (), NULL, 0) == -1) {
/*
* Attach failed; it's probably already being
* debugged.
@@ -800,7 +800,7 @@
*/
waitpid (getppid (), NULL, 0);
- if (ptrace (PTRACE_DETACH, getppid (), NULL, NULL) == -1)
+ if (ptrace (PT_DETACH, getppid (), NULL, 0) == -1)
g_warning ("ptrace: Detach failed: %s",
strerror(errno));
|