Properly handling pipe() and close() in nested fork()

后端 未结 0 1928
后悔当初
后悔当初 2021-01-15 09:55

I am trying to achieve a simple pipe for a given command ls -alt | tail. What I do is the following:

  1. Parent forks to create child waits for child a
相关标签:
回答
  • 消灭零回复
提交回复
热议问题