bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #24277] make leaks FDs through $(shell)


From: Petr Machata
Subject: [bug #24277] make leaks FDs through $(shell)
Date: Tue, 16 Sep 2008 15:59:33 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]