On 4 September 2013 21:59, Michał Górny <mgo...@gentoo.org> wrote: > And how are you going to implement this? I doubt that fd/vt input has > any sort of 'writing process id' indicator. >
Though granted, my other post is not going to be useful on a line-by-line basis. The obvious easy approach is have an exec launcher of some kind that launches processes with IO redirected to an intermediary process that simply prepends arbitrary strings to every line sent to them, prior to those processes piping the data to the final aggregate output. But this would require large amounts of pipe work and fork+ipc magic. Its surely doable, I recall seeing parts of paludis that do stuff like this. Just those pipes are inherently easy to break in my experience. -- Kent