- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的程序给我一个标识符删除错误。我正在浏览手册页,但不明白什么可能导致此错误“标识符已删除”。我注意到每次我尝试第二次向用户进程发送消息时都会发生这种情况。第一次发送和接收都很好。我尝试了很多方法来重现一个小例子,但我无法做到。我认为这里没有人愿意检查这么多行代码。但基本上我正在做的是
while(1)
{
if(messsage recieved from oss) //msg type getpid(), message text stores master pid
{
send message to oss //message type master pid, message text stores getpid()
}
}
用户进程会在随机时间发送消息,例如:时间 1、时间 4、时间 8 等。第一次发送和接收它的罚款。
最佳答案
Identifier returned
是与错误 EIDRM
对应的错误消息。我的系统的 msgrcv
手册页显示返回此错误的原因如下:
While the process was sleeping to receive a message, the message queue was removed.
通过将命令IPC_RMID
传递给msgctl
来删除消息队列。
关于c - **标识符 msqid 已从系统中删除**含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58509076/
我的程序给我一个标识符删除错误。我正在浏览手册页,但不明白什么可能导致此错误“标识符已删除”。我注意到每次我尝试第二次向用户进程发送消息时都会发生这种情况。第一次发送和接收都很好。我尝试了很多方法来重
感谢大家检查此内容。 我想知道是否有任何方法可以检查消息队列(msqid)并查看队列中是否有任何消息。如果没有,我想继续。我能够在线查找的唯一方法是使用 msgrcv 和 IPC_NOWAIT,但是如
我有一个 c 语言的程序,它应该通过 msgq 发送和接收 ipc 消息。 我遇到的问题是,当我运行 msgrcv() 时,它会将我的全局 int msqid 设置为 0。当然我在其他方法中也需要它,
我有两个独立的进程,都使用 msgget() 使用相同的键(key_t = 9189,作为两个进程的 cmd 行 arg 提供)创建消息队列,并且它们成功地发送和接收消息. 现在我有第三个独立的监控进
我是一名优秀的程序员,十分优秀!