chiark / gitweb /
regress: fuzzraw: implement poll
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 30 Nov 2016 23:29:03 +0000 (23:29 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 11 Jun 2020 15:13:02 +0000 (16:13 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
regress/hplayback.c.m4

index 4ab05c1e285178787b14e7f98e3afa77de908eff..dd98f0ec0b8bf1df4172286ebecfd07232318614 100644 (file)
@@ -265,6 +265,7 @@ static void Ppollfds(struct pollfd *fds, int nfds) {
     if (gotevents != fds->events) Psyntax("poll fds[].events changed");
     Pstring(", revents=",", revents= in pollfds");
     fds->revents= Ppollfdevents();
+    if (gotevents) FR_WRITE(fds->revents);
     Pstring("}","} in pollfds");
     Pstring(comma,"separator in pollfds");
     comma= ", ";