projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Completata revisione del capitolo sulle funzioni di sistema, iniziato
[gapil.git]
/
listati
/
MQFortuneClient.c
diff --git
a/listati/MQFortuneClient.c
b/listati/MQFortuneClient.c
index 84f86c61d9fede64f81bfd038c6e68a8f58585a0..8b8216c46aab21fcd4f9c589ee8ac5c948b02304 100644
(file)
--- a/
listati/MQFortuneClient.c
+++ b/
listati/MQFortuneClient.c
@@
-8,10
+8,10
@@
int main(int argc, char *argv[])
exit(1);
}
/* Main body: do request and write result */
exit(1);
}
/* Main body: do request and write result */
- msg_read.mtype = 1;
/* type for request is always 1 */
- msg_read.pid = getpid();
/* use pid for communications */
+ msg_read.mtype = 1; /* type for request is always 1 */
+ msg_read.pid = getpid(); /* use pid for communications */
size = sizeof(msg_read.pid);
size = sizeof(msg_read.pid);
- msgsnd(msgid, &msg_read, size, 0);
/* send request message */
+ msgsnd(msgid, &msg_read, size, 0); /* send request message */
msgrcv(msgid, &msg_write, MSGMAX, msg_read.pid, MSG_NOERROR);
printf("%s", msg_write.mtext);
}
msgrcv(msgid, &msg_write, MSGMAX, msg_read.pid, MSG_NOERROR);
printf("%s", msg_write.mtext);
}