Fix FD leak in pipe (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 23 Feb 2017 15:56:43 +0000 (10:56 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 2 Mar 2017 18:01:28 +0000 (13:01 -0500)
commit1030d060f8476186575035cb147421e511014d5d
treed8191d39cc43bce9f67309ca00064ece69bb0dbe
parent4770a7f7b1b54e9a0b1d5ee410cd45428e76b725
Fix FD leak in pipe (XCC)

We weren't closing the dirfd.  You'd notice this after a lot of ssh
connections, since the pipes would build up.  They weren't closed and were
getting passed to dropbear's children.  After a dozen scps, if you looked
at the open files for a new ssh + shell connection, you'd see a dozen pipe
Qdirs.

Rebuild glibc, eventually.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/pipe2.c