Improve multiple inotify_event handling
Improve multiple inotify_event handling

A inotify read may handle multiple events; so improve the handling of those
and correctly set the refresh count.

andyvand/cygpcpfans,mbaldessari/pcp,tjanez/pcp,prasincs/pcp,aeg-aeg/pcpfans,mbaldessari/pcp,adfernandes/pcp,prasincs/pcp,andyvand/cygpcpfans,edwardt/pcp,tjanez/pcp,wuliming/pcp,tjanez/pcp,mbaldessari/pcp,wuliming/pcp,edwardt/pcp,tjanez/pcp,andyvand/cygpcpfans,prasincs/pcp,tjanez/pcp,aeg-aeg/pcpfans,tjanez/pcp,adfernandes/pcp,andyvand/cygpcpfans,adfernandes/pcp,edwardt/pcp,edwardt/pcp,aeg-aeg/pcpfans,mbaldessari/pcp,edwardt/pcp,adfernandes/pcp,aeg-aeg/pcpfans,wuliming/pcp,edwardt/pcp,andyvand/cygpcpfans,prasincs/pcp,wuliming/pcp,prasincs/pcp,mbaldessari/pcp,andyvand/cygpcpfans,wuliming/pcp,andyvand/cygpcpfans,wuliming/pcp,aeg-aeg/pcpfans,adfernandes/pcp,mbaldessari/pcp,wuliming/pcp,tjanez/pcp,prasincs/pcp,adfernandes/pcp,edwardt/pcp,andyvand/cygpcpfans,aeg-aeg/pcpfans,edwardt/pcp,adfernandes/pcp,wuliming/pcp,tjanez/pcp,aeg-aeg/pcpfans,prasincs/pcp,prasincs/pcp,adfernandes/pcp,aeg-aeg/pcpfans