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

Implement execv #91

Open
thejpster opened this issue Feb 17, 2024 · 1 comment
Open

Implement execv #91

thejpster opened this issue Feb 17, 2024 · 1 comment

Comments

@thejpster
Copy link
Member

thejpster commented Feb 17, 2024

MS-DOS has an execv API. This replaces the current (and indeed only) process's executable with a different one, leaving all the file handles as-is. This might be useful for Neotron OS.

See the exec functions.

@thejpster
Copy link
Member Author

thejpster commented May 26, 2024

Alternatively you can mark file handles with an ID representing the process that started them, using a process stack. New processes can be pushed on to the stack, but the process must exit to be popped off the stack and at that point all its handles can be closed.

See the spawn functions.

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

No branches or pull requests

1 participant