]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
patman: Add cros_subprocess library to manage subprocesses
authorSimon Glass <sjg@chromium.org>
Sat, 15 Dec 2012 10:42:03 +0000 (10:42 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Apr 2013 21:04:33 +0000 (14:04 -0700)
commit71162e3cae29832192497d4a1b966336b638df01
tree65094dc14dcd7068d29f71429a3f5442975661f1
parent43bca004d698a2c6f457b32efeaa796e7751a72b
patman: Add cros_subprocess library to manage subprocesses

This adds a new library on top of subprocess which permits access to
the subprocess output as it is being generated. We can therefore
give the illusion that a process is running independently, but still
monitor its output so that we know what is going on.

It is possible to display output on a terminal as it is generated
(a little like tee). The supplied output function is called with all
stdout/stderr data as it arrives.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/cros_subprocess.py [new file with mode: 0644]