✅ 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)"?