summaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:40 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:40 +1000
commit4d43913ce07ffbcb1ae8e7bdd06a4bd67cd07791 (patch)
treecc1f8daee6e0817a778fbaa1064b2afad50351a7 /msg.c
parent2f64e61a507ee4c1a8e2fcdbc2ce0ec89fcb7902 (diff)
downloadmdadm-4d43913ce07ffbcb1ae8e7bdd06a4bd67cd07791.tar.gz
mdadm-4d43913ce07ffbcb1ae8e7bdd06a4bd67cd07791.tar.xz
mdadm-4d43913ce07ffbcb1ae8e7bdd06a4bd67cd07791.zip
Remove mgr_pipe for communicating from manage to monitor.
Data is being passed in shared memory, so the pipe is only being use as a wakeup. This can more easily be done with a thread-signal.
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/msg.c b/msg.c
index d0e505d..ac40ee5 100644
--- a/msg.c
+++ b/msg.c
@@ -88,7 +88,7 @@ tx_rx_message(int fd, struct md_message *msg, int recv_send, int tmo)
break;
case TX_RX_NUM_BYTES:
if (msg->num_bytes >
- sizeof(union md_message_commands))
+ 1024*1024)
state = TX_RX_ERR;
else if (recv_send && msg->num_bytes) {
msg->buf = malloc(msg->num_bytes);