Just can't stay away
Joined: 2006/11/30 11:30 Last Login
: 11/18 16:17
From Finland
Group:
Registered Users
|
@geennaam
Except for a few rare exceptions it is generally fine to share the library and interface with a child process. Just make sure that you do not close them while the child process is still running.
I'm not sure what you are using the child process for but if it is to stay alive even after the original caller has left then you should not use NP_Child.
The NP_Child tag mainly does two things: - For newlib programs it ensures that the newly created process is using the same reent data structure as the parent, which means that file descriptors and other clib constructs can be passed between the processes without problem. - Ensures that the parent process does not exit before the child does.
|