[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
a bug in gnu mach?
From: |
Li Fred |
Subject: |
a bug in gnu mach? |
Date: |
Fri, 18 Oct 2002 07:53:47 +0000 |
when i read the source code of the latest version(1.3)of gnumach,i think
there may be a bug in
function ipc_mqueue_send(ipc/ipc_mqueue.c:line 310).
when waken up from thread_block,the function check that the wait_result ,if
it is THREAD_TIMED_OUT, it just set the variant time_out to 0 and break.
then the function return MACH_MSG_SUCCESS.
it is strange that the variant time_out dose not used again,and the return
value is not right, it should return MACH_SEND_TIMED_OUT.
i think maybe the break statement should be the continue statement, the
large for loop can use the variant time_out again and return
MACH_SEND_TIMED_OUT(line 273).
has anyone noticed this, or it's my fault?
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/lccn/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- a bug in gnu mach?,
Li Fred <=