Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は、実行する4つのプログラムをフォークする必要があるプログラムを作成しています。私の問題は、実行する子を待つ方法です。子が exec を行うと、Wait() が機能しません
私の問題は、実行する子を待つ方法です。子が exec を行うと、Wait() が機能しません
関数について話していると仮定すると、子がシステムコールを実行するかどうかに関係なく、どの子に対しても完全にwait(3)正常に機能します。execve(2)
wait(3)
execve(2)
4 人の子供を待ちたいと思われるので、 にも興味があるかもしれませんwaitpid(3)。
waitpid(3)