Fix epoll_ctl erroring out 52/110052/1
authorMichal Bloch <m.bloch@samsung.com>
Thu, 12 Jan 2017 14:49:10 +0000 (15:49 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Thu, 12 Jan 2017 15:13:20 +0000 (16:13 +0100)
commit4e7a325f67afc80ed51bee379a0881f0ef58138f
tree79b555eb1425273ddbe11fcf50ffce64421cd9e0
parent2ebee210994037bd42b56a6eb5c521805797f5f4
Fix epoll_ctl erroring out

Do not call epoll_ctl on FDs representing actual files,
which causes the call to error out with EPERM.

This use of this mechanism was twofold; first, pipes
need to actually be added to epoll (to see if they're
full). The second use was to discover whether a descriptor
represents a file. This information is known a priori,
which removes the need to make calls doomed to fail.

Change-Id: Ic11c211ee88e70899998e794847b79afc0a90d9a
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/logger/logger.c