{"id":2674,"date":"2012-09-27T15:43:13","date_gmt":"2012-09-27T06:43:13","guid":{"rendered":"http:\/\/pchero21.com\/?p=2674"},"modified":"2012-09-27T15:43:13","modified_gmt":"2012-09-27T06:43:13","slug":"%eb%a9%94%ec%8b%9c%ec%a7%80-%ed%81%90-%ed%83%80%ec%9e%85-%ea%b4%80%eb%a0%a8-msgsnd","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=2674","title":{"rendered":"\uba54\uc2dc\uc9c0 \ud050 \ud0c0\uc785 \uad00\ub828.. msgsnd"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>IPC \ub97c \uc704\ud574 MessageQueue \ub97c \uc0ac\uc6a9\ud574\uc57c \ud588\ub2e4.<\/p>\n<p>\uadf8\ub7f0\ub370 \ubb38\uc81c\ub294 msgsnd \uc2dc\uc2a4\ud15c \ud568\uc218\ub97c \ud1b5\ud574 \ub370\uc774\ud130\ub97c \ubcf4\ub0bc\ub824\uace0 \ud558\ub294\ub370 \uc790\uafb8 \uc5d0\ub7ec\uac00 \ub098\ub294\uac83..<\/p>\n<blockquote><p>[22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,232]&lt;ERR&gt;Queue Create Failed. Queue Already Created. Id[4653059]<br \/>\n[22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,217]&lt;ERR&gt;Queue Create Failed. Invalid Queue Key[-1]<br \/>\n[22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,217]&lt;ERR&gt;Queue Create Failed. Invalid Queue Key[1215752192]<br \/>\n[22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,224]&lt;ERR&gt;Queue Create Failed. Invalid Queue Size!! Size[1215752192]<br \/>\n[22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,283][3]&lt;INF&gt;Queue Create Success!! Input Key[494949], Size[10000] =&gt; Created Key[494949], Id[4685827], Size[10000]<br \/>\n[22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,283][3]&lt;INF&gt;Queue Create Success!! Input Key[494949], Size[10000] =&gt; Created Key[494949], Id[4718595], Size[10000]<br \/>\n[22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,84][3]&lt;INF&gt;Queue Write. Id[4718595],Type[0],Buf[THIS IS TEST],Size[5]<br \/>\n[22:17:29.538][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/nxlib\/common\/queue.c,195][1]&lt;WriteQueue&gt;msgsnd error:-1, 22(Invalid argument)<br \/>\n[22:17:29.538][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/nxlib\/common\/queue.c,196][1]&lt;WriteQueue&gt;Info Id[4718595], Type[0], Data[THIS ], Len[5], Ret[-1]<br \/>\n[22:17:29.538][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,88]&lt;ERR&gt;Queue Write Failed!<\/p><\/blockquote>\n<p>\ub85c\uadf8 \ub0b4\uc6a9\uc774\ub2e4.. \ubb38\uc81c\uac00 \uc0dd\uae30\ub294 \ubd80\ubd84\uc740 \ub9c8\uc9c0\ub9c9 \ubd80\ubd84\uc758 <strong>&lt;WriteQueue&gt;msgsnd error:-1, 22(Invalid argument)<\/strong> \ubd80\ubd84.<\/p>\n<p>\uc804\ud600 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud560 \ubd80\ubd84\uc774 \uc5c6\ub294\ub370 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud574\uc11c \ud55c\ucc38\uc744 \ud5e4\ub9e4\ub2e4\uac00 \uaca8\uc6b0\ub2f5\uc744 \ucc3e\uc558\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>msgsnd \uc758 \ub9e8\ud398\uc774\uc9c0\uc5d0\uc11c \ub2f5\uc744 \ucc3e\uc744 \uc218 \uc788\uc5c8\ub2e4.<\/p>\n<p>DESCRIPTION<br \/>\nThe\u00a0 msgsnd()\u00a0 and\u00a0 msgrcv() system calls are used, respectively, to send messages to, and receive messages from, a message queue.\u00a0 The calling process must have write permission on the<br \/>\nmessage queue in order to send a message, and read permission to receive a message.<\/p>\n<p>The msgp argument is a pointer to caller-defined structure of the following general form:<\/p>\n<p>struct msgbuf {<br \/>\nlong mtype;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/* message type, must be &gt; 0 *\/<br \/>\nchar mtext[1];\u00a0\u00a0\u00a0 \/* message data *\/<br \/>\n};<\/p>\n<p>The mtext field is an array (or other structure) whose size is specified by msgsz, a nonnegative integer value.\u00a0 Messages of zero length (i.e., no mtext field) are permitted.\u00a0 The mtype<br \/>\nfield must have a strictly positive integer value.\u00a0 This value can be used by the receiving process for message selection (see the description of msgrcv() below).<\/p>\n<p>\ubb38\uc81c\ub294 \uba54\uc2dc\uc9c0 \ud050 \ud0c0\uc785\uc744 &#8216;0&#8217;\uc73c\ub85c \ud558\uace0 msgsnd\ub97c \ud638\ucd9c \ud588\ub358 \uac83&#8230;<\/p>\n<p>\ub9e8\ud398\uc774\uc9c0\uc5d0 \uba85\ud655\ud558\uac8c \uc801\ud600 \uc788\uc5c8\ub2e4.&#8221;\/* message type, must be &gt; 0 *\/&#8221; &#8230;. \uc544..;;<\/p>\n<p>&nbsp;<\/p>\n<p>\ud050 \ud0c0\uc785\uc744 1\ub85c \ud558\uace0 \ud638\ucd9c\ud558\uc790 \uc815\uc0c1 \uc791\ub3d9 \ub418\uc5c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; IPC \ub97c \uc704\ud574 MessageQueue \ub97c \uc0ac\uc6a9\ud574\uc57c \ud588\ub2e4. \uadf8\ub7f0\ub370 \ubb38\uc81c\ub294 msgsnd \uc2dc\uc2a4\ud15c \ud568\uc218\ub97c \ud1b5\ud574 \ub370\uc774\ud130\ub97c \ubcf4\ub0bc\ub824\uace0 \ud558\ub294\ub370 \uc790\uafb8 \uc5d0\ub7ec\uac00 \ub098\ub294\uac83.. [22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,232]&lt;ERR&gt;Queue Create Failed. Queue Already Created. Id[4653059] [22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,217]&lt;ERR&gt;Queue Create Failed. Invalid Queue Key[-1] [22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,217]&lt;ERR&gt;Queue Create Failed. Invalid Queue Key[1215752192] [22:17:29.537][\/home\/jonathan\/workspace\/19.Projects\/CUTE\/source\/oxdsagent\/queuectl.cpp,224]&lt;ERR&gt;Queue &hellip; <a href=\"http:\/\/pchero21.com\/?p=2674\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/2674"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2674"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/2674\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2674"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}