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:
parent
53ac73b04e
commit
07c1744c02
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user