Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
80 user(s) are online (65 user(s) are browsing Forums)

Members: 3
Guests: 77

kas1e, Skateman, salass00, more...

Support us!

Headlines

Report message:*
 

Re: Amiga programming NOOB question

Subject: Re: Amiga programming NOOB question
by salass00 on 2021/1/18 8:26:24

@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.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project