[LTP] [PATCH] syscalls/msgctl13: fix error when run on the new system

Cui Bixuan cuibixuan@huawei.com
Thu Apr 14 03:17:03 CEST 2016


On 2016/4/13 18:51, Cyril Hrubis wrote:
> Hi!
>> But why it return EINVAL, instead of EIDRM?
> 
> Since at the point we do the IPC_STAT the ID is allready unused hence
> it's not valid anymore. You get EIDRM only in case that process is
> waiting in kernel (for example in msgrcv()) while another process
> removes the queue.
Get it, Thank you.
> 



More information about the ltp mailing list