bash - Does pipexec create some subprocesses? -
i using pipexec tool manage communication between processes. task requires me retrieve ids of processes communicate.
example:
pipexec -- [ ./cmd1 ] [ b ./cmd2 ] "{a:1>b:0}" "{b:1>a:0}" &
then:
ps --ppid xxxx
where xxxx pid of pipexec process. can sure there 2 processes displayed or there possibility pipexec run internal process @ point of running?
from pipexec
man page:
pipexec creates arbitrary network (directed graph) of processes , pipes in between - cycles possible. overcomes shortcomings of shells typically able create non cyclic trees.
pipexec monitors it's child processes , able restart whole network of processes , pipes if 1 crashes. therefore pipexec can used in sysv-init or systemd configuration run network of processes.
so, it's possible in case of failures when pipexec
restarts the "network", create more processes know. assuming there no failures, appears pipexec
creates number of processes have specified. experimentally, see:
$ ps -af uid pid ppid c stime tty time cmd usr 6531 29605 0 13:02 pts/9 00:00:00 pipexec -- [ /bin/sleep 30 ] [ b /bin/sleep 40 ] usr 6532 6531 0 13:02 pts/9 00:00:00 /bin/sleep 30 usr 6533 6531 0 13:02 pts/9 00:00:00 /bin/sleep 40
when running:
pipexec -- [ /bin/sleep 30 ] [ b /bin/sleep 40 ]
this may or may not universally true. couldn't find in documentation says on this.
Comments
Post a Comment