SHA256
1
0
forked from pool/strace
strace/strace-4.5.15.diff

32 lines
704 B
Diff

--- signal.c
+++ signal.c
@@ -1697,7 +1697,7 @@
struct tcb *tcp;
{
if (entering(tcp)) {
- tprintf("%ld, %s", tcp->u_arg[0], signame(tcp->u_arg[1]));
+ tprintf("%d, %s", (pid_t)tcp->u_arg[0], signame(tcp->u_arg[1]));
}
return 0;
}
--- strace.c
+++ strace.c
@@ -1461,7 +1461,7 @@
#ifdef LINUX
if (zombie != NULL)
- error = detach(zombie) || error;
+ error = detach(zombie, 0) || error;
#endif
return error;
@@ -2035,7 +2035,7 @@
fprintf(stderr,
"PANIC: handle_group_exit: %d leader %d\n",
tcp->pid, leader ? leader->pid : -1);
- detach(tcp); /* Already died. */
+ detach(tcp, 0); /* Already died. */
}
else {
/* Mark that we are taking the process down. */