From: Tommi Rantala <[email protected]>
We want to close the FD we get from accept() in the parent process, as it will
be used only in the child process.
---
tipc-pipe/tipc-pipe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tipc-pipe/tipc-pipe.c b/tipc-pipe/tipc-pipe.c
index 7bb3001..2c06df6 100644
--- a/tipc-pipe/tipc-pipe.c
+++ b/tipc-pipe/tipc-pipe.c
@@ -358,6 +358,7 @@ again:
exit(0);
default:
/* parent */
+ close(peer_sd);
break;
}
goto again;
--
2.9.3
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
tipc-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tipc-discussion