dspinellis / dspinellis/pmonitor

“too many open files” error in awk

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
192
Forks
19
PR merge metrics
No merged PRs in 30d

Description

I am running `pmonitor -i1` on a long-running `cp` process that copies some large files but also very many small files, and I’m getting this error:

```
awk: cmd. line:4: (FILENAME=- FNR=18787) fatal: cannot open pipe `date +%s' (Too many open files)
```

I think `file_length` is leaking file descriptors (though I’m not quite sure about the details).

PR incoming.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.