Skip to content

os: remove process_close and add process_terminate#6301

Merged
Kelimion merged 2 commits intoodin-lang:masterfrom
laytan:remove-process-close-add-process-terminate
Feb 18, 2026
Merged

os: remove process_close and add process_terminate#6301
Kelimion merged 2 commits intoodin-lang:masterfrom
laytan:remove-process-close-add-process-terminate

Conversation

@laytan
Copy link
Collaborator

@laytan laytan commented Feb 18, 2026

process_wait (optionally prefaced with a process_kill) can be used to properly close and free resources of the process.

process_terminate was added because process_kill is a forceful exit, we were missing a way to request the process to terminate.

Fixes #6294

@laytan laytan mentioned this pull request Feb 18, 2026
71 tasks
`process_wait` (optionally prefaced with a `process_kill`) can be used
to properly close and free resources of the process.

`process_terminate` was added because `process_kill` is a forceful
exit, we were missing a way to request the process to terminate.
@laytan laytan force-pushed the remove-process-close-add-process-terminate branch from 65d60fc to e87e3fb Compare February 18, 2026 19:15
@Kelimion Kelimion merged commit 76f5c39 into odin-lang:master Feb 18, 2026
15 of 16 checks passed
@laytan laytan deleted the remove-process-close-add-process-terminate branch February 18, 2026 19:46
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.

Calling process_exec too many times in the same running process will error out with EMFILE

2 participants