ignore the double registration error

allow the substitute of maps from mcexec thread to the syscall channel

the temporary correction of the problem that gethostbyname() after
accept() interruption finishes an error.
This commit is contained in:
NAKAMURA Gou
2013-09-05 20:00:45 +09:00
parent 6f76c392ee
commit bb1390b085

View File

@@ -65,7 +65,14 @@ int register_peer_channel(struct mcctrl_usrdata *ud, void *key, struct mcctrl_ch
printk("register_peer_channel(%p,%p,%p):"
"already registered. cpu=%d\n",
ud, key, ch, cpu);
/*
* When mcexec receives a signal,
* it may be finished without doing deregister_peer_channel().
* Therefore a substitute registration is necessary.
*/
#if 0
return -EBUSY;
#endif
}
ud->keys[cpu] = key;