Fork to create a new child process with new pid.
使用fork创建一个具有新的PID的子进程。
Note that the child process never returns from the call to execv.
请注意,该子进程一直没有从execv调用返回。
Listing 7. Example of a parent and child process in a bash environment.
清单7.bash环境中的父进程和子进程示例。
When this new process-the child process-is executing, the parent process will still be running.
当这个新进程(子进程)正在执行时,父进程仍然在运行。
The existing child process should handle these requests.
现有的子进程应该处理这些请求。
The function returns an integer, which represents the exit code for the child process.
这个函数返回一个整数,代表子进程的退出码。
The function returns an integer, which represents the exit code for the child process.
这个函数返回一个整数,代表子进程的退出码。
应用推荐