Update linux-core.c

This patch allows dup2 cloned fd to work with the event handler as intended.
bnoordhuis, yes your rephrasing is 100% correct. Sometime it is hard to put it in writing.
Thanks