[CRIU] Re: [PATCH 1/4] IPC: dump message queue

Pavel Emelyanov xemul at parallels.com
Thu Feb 9 03:34:30 EST 2012


On 02/09/2012 12:05 PM, Kinsbursky Stanislav wrote:
> 08.02.2012 21:47, Pavel Emelyanov пишет:
>>> +static int dump_ipc_msg_pages(int fd, const struct ipc_msg_entry *entry)
>>> +{
>>> +	int msg_nr = 0;
>>> +
>>> +	while (msg_nr<  entry->qnum) {
>>> +		struct msgbuf {
>>> +			long mtype;
>>> +			char mtext[MSGMAX];
>>> +		} data;
>>> +		struct ipc_msg msg;
>>> +		int ret;
>>> +
>>> +		ret = msgrcv(entry->seg.id,&data, sizeof(data), 0, IPC_NOWAIT);
>> And the message disappears from the queue after dump, right?
> 
> Yes.
> 

Then NAK. Dump should be non-destructive.



More information about the CRIU mailing list