syscall: dump write buffer regardless of fd value

For the same reason, as with syserror(tcp).

* syscall.c (dumpio): Move "fd < 0" check after write I/O buffer
printing.
This commit is contained in:
Eugene Syromyatnikov 2018-09-27 07:37:35 +02:00
parent 53ac73b04e
commit 07c1744c02

View File

@ -399,8 +399,6 @@ static void
dumpio(struct tcb *tcp)
{
int fd = tcp->u_arg[0];
if (fd < 0)
return;
if (is_number_in_set(fd, write_set)) {
switch (tcp->s_ent->sen) {
@ -426,7 +424,7 @@ dumpio(struct tcb *tcp)
}
}
if (syserror(tcp))
if (fd < 0 || syserror(tcp))
return;
if (is_number_in_set(fd, read_set)) {