为什么启动Socat进行一些论点会导致两个过程?

问题描述 投票:0回答:1

    socat TCP-LISTEN:12345,fork -
  1. 在a,
  2. pidof socat
  3. 在B中,
  4. socat TCP-CONNECT:localhost:12345 -
  5. 在c,
  6. pidof socat
  7. 再次在B.
    
    
  8. 步骤2将打印1个PID,而步骤4将打印3个PID,这意味着步骤3产生了2个过程(而步骤1肯定仅产生1个过程)。
为什么?这是

socat

的(Uniterestest?)实现细节吗?还是有必要工作?

不足为奇
socat
听众催生了一个额外的过程,因为它实际上是通过选项指示了这样做的。 the the the仅导致第4步印刷的两个PID。

network-programming process pid socat
1个回答
0
投票
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.