You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
thejpster commentedon 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.