[PATCH] Fix simultaneous -e read and -e write usage.
Aurelien Jacobs
aurel at gnuage.org
Sat Jan 31 22:57:00 UTC 2015
This allows using both -e read=FD and -e write=FD at the same time
with the same FD.
Without this patch, the -e write=FD is ignored if -e read=FD is used
at the same time.
Signed-off-by: Aurelien Jacobs <aurel at gnuage.org>
---
syscall.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/syscall.c b/syscall.c
index 51771c2..0355c5f 100644
--- a/syscall.c
+++ b/syscall.c
@@ -2504,7 +2504,6 @@ dumpio(struct tcb *tcp)
else if (func == sys_recvmmsg)
dumpiov_in_mmsghdr(tcp, tcp->u_arg[1]);
#endif
- return;
}
if (qual_flags[tcp->u_arg[0]] & QUAL_WRITE) {
if (func == sys_write ||
@@ -2520,7 +2519,6 @@ dumpio(struct tcb *tcp)
else if (func == sys_sendmmsg)
dumpiov_in_mmsghdr(tcp, tcp->u_arg[1]);
#endif
- return;
}
}
--
2.1.4
More information about the Strace-devel
mailing list