← Back to context

Comment by dataflow

1 day ago

What's the footgun with edge triggering?

The edge in epoll edge triggering is going from has data to doesn't have data.

So the obvious loop using level triggering switched to edge will eventually lock up.

You'll read 4092bbytesbwhen there is 4093 bytes leaving 1 behind and then never get a signal again.