msgsnd/msgrcv 注意typeflag
struct msgbuf {
long mtype;//指定type
char mtext[80];//要传的内容
};
使用时要注意发送和接收时的mtype(typeflag值不为0的情况下)保持一致。(具体如下面例子)
bug
In Linux 3.13 and earlier, if msgrcv() was called with the MSG_COPY flag, but without IPC_NOWAIT, and th...
原创
2021-02-25 19:08:03 ·
524 阅读 ·
0 评论