logo

Crowdly

Browser

Add to Chrome

Considere o seguinte código no Servidor: if ((msgId = msgget(IPC_KEY, IPC_CREA...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Considere o seguinte código no Servidor:

if ((msgId = msgget(IPC_KEY, IPC_CREAT | IPC_EXCL | 0666)) == -1) {

    if (errno == EEXIST) {

        so_exit_on_error(msgctl(msgId, IPC_RMID, NULL), "msgctl");

        so_exit_on_error((msgId = msgget(IPC_KEY, IPC_CREAT | IPC_EXCL | 0666)), "msgget");

    }

}

Qual é o objetivo da verificação "if (errno == EEXIST)"?

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle24.iscte-iul.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome