[CRIU] Re: [PATCH 1/4] IPC: dump message queue
Kinsbursky Stanislav
skinsbursky at openvz.org
Thu Feb 9 03:05:42 EST 2012
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.
--
Best regards,
Stanislav Kinsbursky
More information about the CRIU
mailing list