Handle EPOLLHUP to avoid chaos/runaways when using certain file descriptors.
Handle EPOLLHUP to avoid chaos/runaways when using certain file descriptors.

A concrete example is pipe file descriptors: they generate EPOLLHUP instead of a EPOLLIN (then 0 bytes read). The loop will run wild if this event is not handled.

kirbyfan64/Nim,sferik/Nim,judofyr/Nim,mbaulch/Nim,nafsaka/Nim,mbaulch/Nim,judofyr/Nim,Matt14916/Nim,endragor/Nim,tmm1/Nim,dom96/Nim,xland/Nim,jsanjuas/Nim,sferik/Nim,russpowers/Nim,MrJohz/Nim,kirbyfan64/Nim,tmm1/Nim,Salafit/Nim,gokr/Nim,endragor/Nim,JCavallo/Nim,nanoant/Nim,jfhg/Nim,bvssvni/Nim,haiodo/Nim,mbaulch/Nim,russpowers/Nim,sarvex/Nim-lang,dom96/Nim,greyanubis/Nim,zachaysan/Nim,SSPkrolik/Nim,gokr/Nim,SSPkrolik/Nim,tmm1/Nim,zachaysan/Nim,SSPkrolik/Nim,nafsaka/Nim,tmm1/Nim,Dhertz/Nim,Salafit/Nim,russpowers/Nim,tulayang/Nim,BlaXpirit/nim,BlaXpirit/nim,tulayang/Nim,msmith491/Nim,zachaysan/Nim,Senketsu/Nim,judofyr/Nim,Salafit/Nim,haiodo/Nim,singularperturbation/Nim,Senketsu/Nim,nimLuckyBull/Nim,Matt14916/Nim,kirbyfan64/Nim,BlaXpirit/nim,fredericksilva/Nim,bvssvni/Nim,haiodo/Nim,singularperturbation/Nim,kirbyfan64/Nim,sarvex/Nim-lang,BlaXpirit/nim,douglas-larocca/Nim,jsanjuas/Nim,greyanubis/Nim,Dhertz/Nim,endragor/Nim,zachaysan/Nim,nimLuckyBull/Nim,greyanubis/Nim,tmm1/Nim,Dhertz/Nim,tmm1/Nim,endragor/Nim,Matt14916/Nim,Matt14916/Nim,tmm1/Nim,fredericksilva/Nim,greyanubis/Nim,sferik/Nim,fmamud/Nim,tulayang/Nim,jfhg/Nim,xland/Nim,fmamud/Nim,nafsaka/Nim,gokr/Nim,fmamud/Nim,greyanubis/Nim,Senketsu/Nim,bvssvni/Nim,russpowers/Nim,jfhg/Nim,reactormonk/nim,nimLuckyBull/Nim,gokr/Nim,Dhertz/Nim,xland/Nim,haiodo/Nim,sferik/Nim,greyanubis/Nim,reactormonk/nim,msmith491/Nim,msmith491/Nim,judofyr/Nim,singularperturbation/Nim,tulayang/Nim,judofyr/Nim,sferik/Nim,nimLuckyBull/Nim,JCavallo/Nim,dom96/Nim,russpowers/Nim,bvssvni/Nim,endragor/Nim,nanoant/Nim,Senketsu/Nim,BlaXpirit/nim,zachaysan/Nim,nanoant/Nim,sarvex/Nim-lang,judofyr/Nim,jfhg/Nim,endragor/Nim,sarvex/Nim-lang,jsanjuas/Nim,kirbyfan64/Nim,JCavallo/Nim,BlaXpirit/nim,Senketsu/Nim,fmamud/Nim,mbaulch/Nim,Senketsu/Nim,gokr/Nim,MrJohz/Nim,sferik/Nim,nafsaka/Nim,Salafit/Nim,nafsaka/Nim,zachaysan/Nim,russpowers/Nim,SSPkrolik/Nim,fmamud/Nim,douglas-larocca/Nim,dom96/Nim,haiodo/Nim,mbaulch/Nim,fmamud/Nim,JCavallo/Nim,douglas-larocca/Nim,xland/Nim,sarvex/Nim-lang,xland/Nim,MrJohz/Nim,JCavallo/Nim,mbaulch/Nim,SSPkrolik/Nim,reactormonk/nim,msmith491/Nim,nanoant/Nim,nimLuckyBull/Nim,JCavallo/Nim,judofyr/Nim,SSPkrolik/Nim,jsanjuas/Nim,nanoant/Nim,sarvex/Nim-lang,nafsaka/Nim,singularperturbation/Nim,fredericksilva/Nim,gokr/Nim,russpowers/Nim,BlaXpirit/nim,fmamud/Nim,Dhertz/Nim,nanoant/Nim,nimLuckyBull/Nim,bvssvni/Nim,zachaysan/Nim,Senketsu/Nim,douglas-larocca/Nim,judofyr/Nim,jfhg/Nim,kirbyfan64/Nim,MrJohz/Nim,nafsaka/Nim,reactormonk/nim,sarvex/Nim-lang,haiodo/Nim,douglas-larocca/Nim,reactormonk/nim,fredericksilva/Nim,bvssvni/Nim,tulayang/Nim,fredericksilva/Nim,reactormonk/nim,jfhg/Nim,msmith491/Nim,nanoant/Nim,kirbyfan64/Nim,Matt14916/Nim,jsanjuas/Nim,jfhg/Nim,Salafit/Nim,Dhertz/Nim,fredericksilva/Nim,BlaXpirit/nim,xland/Nim,JCavallo/Nim,Matt14916/Nim,greyanubis/Nim,Salafit/Nim,tulayang/Nim,SSPkrolik/Nim,gokr/Nim,SSPkrolik/Nim,singularperturbation/Nim,douglas-larocca/Nim,douglas-larocca/Nim,msmith491/Nim,msmith491/Nim,Salafit/Nim,endragor/Nim,dom96/Nim,kirbyfan64/Nim,dom96/Nim,MrJohz/Nim,reactormonk/nim,fredericksilva/Nim,nimLuckyBull/Nim,mbaulch/Nim,dom96/Nim,xland/Nim,reactormonk/nim,singularperturbation/Nim,sferik/Nim,MrJohz/Nim,jsanjuas/Nim,gokr/Nim,douglas-larocca/Nim,haiodo/Nim,singularperturbation/Nim,sferik/Nim,jsanjuas/Nim,MrJohz/Nim,Matt14916/Nim,bvssvni/Nim,Dhertz/Nim,fredericksilva/Nim