syscalls/write05: fix SIGPIPE check

WIFSIGNALED(status) returns true if the child process was
terminated by a signal.

WTERMSIG(status) returns the number of the signal that caused
the child process to terminate.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
1 file changed