URL: <http://savannah.gnu.org/bugs/?24277>
Summary: make leaks FDs through $(shell) Project: make Submitted by: ant_39 Submitted on: Tue 16 Sep 2008 05:59:30 PM CEST Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 3.81 Operating System: POSIX-Based Fixed Release: None _______________________________________________________ Details: $ cat mk X := $(shell ./x.py) all:; echo "$(X)" $ cat x.py #!/usr/bin/env python import os $ make -f mk 0 lr-x------ 1 petr petr 64 2008-09-16 17:36 3 -> /home/petr/packages-fedora/make/devel/make-test-fd-leak/mk 0 lr-x------ 1 petr petr 64 2008-09-16 17:36 6 -> /home/petr/GNUstep/Defaults echo "" The second file is probably WindowMaker bug, the first is the file fopened in eval_makefile (read.c). _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 16 Sep 2008 05:59:30 PM CEST Name: make-fdleak.patch Size: 1kB By: ant_39 Fix above problem by opening the fila via open/fdopen/CLOSE_ON_EXEC combo (if fdopen is available). <http://savannah.gnu.org/bugs/download.php?file_id=16508> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?24277> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make