Skip to content

Should open files with 'close-on-exec' #22

Open
@tschwinge

Description

I noticed that when nvptx-as spawns the ptxas process, the latter does still have the former's file descriptors open (in particular, the *.s input file), presumably due to missing 'close-on-exec' handling. I don't know if we can unconditionally use the e flag with fdopen, or manually have to set up FD_CLOEXEC etc.; see https://stackoverflow.com/questions/1643304/how-to-set-close-on-exec-by-default, for example.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions