Skip to content

Fix native library cleanup #23

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

Merged
merged 1 commit into from
Jun 26, 2022
Merged

Conversation

eed3si9n
Copy link
Member

Ref sbt/sbt#6931

Problem

JNI version of the ipc-socket extracts native library
into a temp directory, and after it's done tries to delete it.
Because it uses /tmp by default, this effectively attemps to
remove empty directories it.

Solution

  1. Namespace it to use .sbt under temp.
  2. Check that the file has the libsbtipcsocket prefix.

@eed3si9n eed3si9n force-pushed the wip/temp-directory branch from c79964c to c45a3d9 Compare June 26, 2022 05:01

Verified

This commit was signed with the committer’s verified signature.
moio Silvio Moioli
Ref sbt/sbt#6931

Problem
-------
JNI version of the ipc-socket extracts native library
into a temp directory, and after it's done tries to delete it.
Because it uses /tmp by default, this effectively attemps to
remove empty directories it.

Solution
--------
1. Namespace it to use `.sbt` under temp.
2. Check that the file has the libsbtipcsocket prefix.
@eed3si9n eed3si9n force-pushed the wip/temp-directory branch from c45a3d9 to 6889572 Compare June 26, 2022 05:06
@eed3si9n eed3si9n merged commit 2897c53 into sbt:master Jun 26, 2022
@eed3si9n eed3si9n deleted the wip/temp-directory branch June 26, 2022 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant