How to wait for child processes in C to finish without using wait(-1)?

后端 未结 0 799
悲&欢浪女
悲&欢浪女 2020-12-04 00:33

I have two child processes created with fork(), and I need the parent to wait for both of them to finish, but I am only allowed to use the function waitpi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题