From bb1390b085deeee4bf76fe4d1bd24c02e8fa5bf0 Mon Sep 17 00:00:00 2001 From: NAKAMURA Gou Date: Thu, 5 Sep 2013 20:00:45 +0900 Subject: [PATCH] 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. --- executer/kernel/syscall.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/executer/kernel/syscall.c b/executer/kernel/syscall.c index b96b7836..ca024817 100644 --- a/executer/kernel/syscall.c +++ b/executer/kernel/syscall.c @@ -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;