1 2Opened fifo fi.fo.fum 3 4Testing empty FIFO: 5 poll POLLIN|POLLOUT, timeout=0 6 1 fd(s) ready, revents == POLLOUT 7 poll POLLIN, timeout=0 8 0 fd(s) ready 9 poll POLLOUT, timeout=0 10 1 fd(s) ready, revents == POLLOUT 11 select read write 12 1 fd(s) ready, writeable 13 select read 14 0 fd(s) ready 15 select write 16 1 fd(s) ready, writeable 17 18Testing full FIFO: 19 poll POLLIN|POLLOUT, timeout=0 20 1 fd(s) ready, revents == POLLIN POLLOUT 21 poll POLLIN, timeout=0 22 1 fd(s) ready, revents == POLLIN 23 poll POLLOUT, timeout=0 24 1 fd(s) ready, revents == POLLOUT 25 select read write 26 2 fd(s) ready, readable, writeable 27 select read 28 1 fd(s) ready, readable 29 select write 30 1 fd(s) ready, writeable 31 received 'test' from FIFO 32 33Opened fifo fi.fo.fum 34 35Testing empty FIFO: 36 poll POLLIN|POLLOUT, timeout=-1 37 1 fd(s) ready, revents == POLLOUT 38 poll POLLIN, timeout=-1 39poll: Interrupted system call 40 poll POLLOUT, timeout=-1 41 1 fd(s) ready, revents == POLLOUT 42 select read write 43 1 fd(s) ready, writeable 44 select read 45 0 fd(s) ready 46 select write 47 1 fd(s) ready, writeable 48 49Testing full FIFO: 50 poll POLLIN|POLLOUT, timeout=-1 51 1 fd(s) ready, revents == POLLIN POLLOUT 52 poll POLLIN, timeout=-1 53 1 fd(s) ready, revents == POLLIN 54 poll POLLOUT, timeout=-1 55 1 fd(s) ready, revents == POLLOUT 56 select read write 57 2 fd(s) ready, readable, writeable 58 select read 59 1 fd(s) ready, readable 60 select write 61 1 fd(s) ready, writeable 62 received 'test' from FIFO 63 64Opened fifo fi.fo.fum (nonblocking) 65 66Testing empty FIFO: 67 poll POLLIN|POLLOUT, timeout=0 68 1 fd(s) ready, revents == POLLOUT 69 poll POLLIN, timeout=0 70 0 fd(s) ready 71 poll POLLOUT, timeout=0 72 1 fd(s) ready, revents == POLLOUT 73 select read write 74 1 fd(s) ready, writeable 75 select read 76 0 fd(s) ready 77 select write 78 1 fd(s) ready, writeable 79 80Testing full FIFO: 81 poll POLLIN|POLLOUT, timeout=0 82 1 fd(s) ready, revents == POLLIN POLLOUT 83 poll POLLIN, timeout=0 84 1 fd(s) ready, revents == POLLIN 85 poll POLLOUT, timeout=0 86 1 fd(s) ready, revents == POLLOUT 87 select read write 88 2 fd(s) ready, readable, writeable 89 select read 90 1 fd(s) ready, readable 91 select write 92 1 fd(s) ready, writeable 93 received 'test' from FIFO 94 95Opened fifo fi.fo.fum (nonblocking) 96 97Testing empty FIFO: 98 poll POLLIN|POLLOUT, timeout=-1 99 1 fd(s) ready, revents == POLLOUT 100 poll POLLIN, timeout=-1 101poll: Interrupted system call 102 poll POLLOUT, timeout=-1 103 1 fd(s) ready, revents == POLLOUT 104 select read write 105 1 fd(s) ready, writeable 106 select read 107 0 fd(s) ready 108 select write 109 1 fd(s) ready, writeable 110 111Testing full FIFO: 112 poll POLLIN|POLLOUT, timeout=-1 113 1 fd(s) ready, revents == POLLIN POLLOUT 114 poll POLLIN, timeout=-1 115 1 fd(s) ready, revents == POLLIN 116 poll POLLOUT, timeout=-1 117 1 fd(s) ready, revents == POLLOUT 118 select read write 119 2 fd(s) ready, readable, writeable 120 select read 121 1 fd(s) ready, readable 122 select write 123 1 fd(s) ready, writeable 124 received 'test' from FIFO 125