Update linux-core.c

This changes will allow the cloned fd to continue operated as the original intent.