1 # This build file prints out a list of open file descriptors in
2 # Ninja subprocesses, to help verify we don't accidentally leak
5 # Because one fd leak was in the code managing multiple subprocesses,
6 # this test brings up multiple subprocesses and then dumps the fd
7 # table of the last one.
9 # Use like: ./ninja -f misc/inherited-fds.ninja
15 command = sleep 1; ls -l /proc/self/fd; exit 1
17 build all: phony a b c d e