mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-06 16:09:43 +00:00
test: explicitly ignore the read() result from the timerfd/pidfd
We don't care about the actual read() being successful - it won't be on pidfd and on timerfd it's just a timestamp we don't need.
This commit is contained in:
parent
f9985636de
commit
a4bdf83e39
|
@ -870,7 +870,8 @@ static int monitor_test_forked(struct pwtest_test *t, pid_t pid, int read_fds[_F
|
|||
|
||||
if (e.data.fd == pidfd) {
|
||||
uint64_t buf;
|
||||
(void)read(pidfd, &buf, sizeof(buf)); /* for timerfd fallback */
|
||||
int ignore SPA_UNUSED;
|
||||
ignore = read(pidfd, &buf, sizeof(buf)); /* for timerfd fallback */
|
||||
if (collect_child(t, pid))
|
||||
break;
|
||||
} else if (e.data.fd == timerfd) {
|
||||
|
|
Loading…
Reference in a new issue