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

Configurable exclusion of temporary files #45

Closed
stbuehler opened this issue Oct 22, 2016 · 2 comments
Closed

Configurable exclusion of temporary files #45

stbuehler opened this issue Oct 22, 2016 · 2 comments
Assignees
Milestone

Comments

@stbuehler
Copy link
Contributor

Various programs create temporary files and map / open them:

  • Gerrit
    • .../reviewsite/tmp/gerrit_7939865497111433863_app/gerrit-common-server.jar and similar
  • Jenkins
    • /tmp/jna--1712433994/jna8262265615257149299.tmp (executable mapping)
    • /tmp/winstone7812778614686151261.jar ("obsolete script file")

It would be nice if one could specify a list of regular expressions to ignore such files; right now I manually ignore m@/tmp/@ in /usr/sbin/needrestart line 438 and in Interp/Java.pm.

@liske
Copy link
Owner

liske commented Oct 31, 2016

It is already possible to configure the blacklist used for the interpreter detection stuff (see also #39). Do you think it is realy required to add such an option for mappings?

@stbuehler
Copy link
Contributor Author

I guess #39 covers the interpreter files.

You already hardcoded so many special cases, like this:

# skip Oil Runtime Compiler's JIT files
next if($path =~ m@/orcexec\.[\w\d]+( \(deleted\))?$@);

You really think one day you'll get them all? You have some /tmp handling, but it obviously failed JNA. I think it is really time you added a way to configure this blacklist, whether by list of regex or even a hook function.

@liske liske added this to the v2.10 milestone Nov 3, 2016
@liske liske self-assigned this Nov 3, 2016
@liske liske closed this as completed in c426f7e Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants