Skip to content

Omit forced System.exit(0) at the end of the program#229

Merged
szarnyasg merged 1 commit intomainfrom
avoid-system-exit
Apr 3, 2023
Merged

Omit forced System.exit(0) at the end of the program#229
szarnyasg merged 1 commit intomainfrom
avoid-system-exit

Conversation

@szarnyasg
Copy link
Copy Markdown
Member

DuckDB deletes its temp file on exit, which a forced exit prevents:
https://github.com/duckdb/duckdb/blob/3dcba6d0b59d50a5cb23a9878ed2847f654712d4/tools/jdbc/src/main/java/org/duckdb/DuckDBNative.java#L51

This, temp directories (/tmp on Linux and temp directories on MacOS under /private/var/folders/) are filled up by libduckdb_java*.so files.

@szarnyasg szarnyasg merged commit c09852f into main Apr 3, 2023
@szarnyasg szarnyasg deleted the avoid-system-exit branch April 3, 2023 08:50
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.

1 participant