From f6b5546e1ff6c6a915a10c955fea0923f39b46ac Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 6 Jun 2006 07:03:04 +0000 Subject: [PATCH] Bugfix. Se crean ambas colas para que todo ande. --- practicas/pipi/src/test_ipin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/practicas/pipi/src/test_ipin.cpp b/practicas/pipi/src/test_ipin.cpp index eb15d0f..10010e9 100644 --- a/practicas/pipi/src/test_ipin.cpp +++ b/practicas/pipi/src/test_ipin.cpp @@ -32,8 +32,10 @@ int main(int argc, char* argv[]) proto = atoi(argv[5]); if (argc > 6) queue_id = atoi(argv[6]); + int que_id = msgget(queue_id, IPC_CREAT | 0666); + assert(que_id != -1); Dev dev(addr, mtu, queue_id); - int que_id = msgget(queue_id+1, IPC_CREAT | 0666); + que_id = msgget(queue_id+1, IPC_CREAT | 0666); assert(que_id != -1); Dev fwque(addr, DEV_MAX_MTU, queue_id+1); IPIn ipin(addr, dev, fwque, router, forward, std::cerr); -- 2.43.0