Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close command used to determine file size #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 14, 2018

  1. Close command used to determine file size

    When an AWK program reads from a file or process, AWK keeps the
    connection to the file or process open until the program explicitly
    closes it. This is useful in order to read multiple lines from a file,
    or to keep reading input from a long-running coprocess, but it also
    means that we must make sure to close any short helper program we
    launch, otherwise we will leak one file descriptor (the pipe to the
    child process) per invocation and eventually run out of file descriptors
    (EMFILE Too many open files). (See also the time() function for an
    example where we already do this.)
    
    Fixes dspinellis#9.
    lucaswerkmeister committed Aug 14, 2018
    Configuration menu
    Copy the full SHA
    b89c0b9 View commit details
    Browse the repository at this point in the history