On 11/05/2010 11:35 AM, John Morrissey wrote:
qemu uses prctl() to set its process title. I bumped up against prctl()'s
16-character limit recently, when adding process title support to
libvirt[1][2].
The attached patch overwrites argv instead. Linux seems to maintain the
length of the original args, even when the new args are shorter and
NULL-terminated, so the trailing whitespace in ps(1) output is probably
unavoidable. I've seen the same result with other daemons that overwrite
argv.
john
[1] https://www.redhat.com/archives/libvir-list/2010-October/msg00565.html
[2]
http://libvirt.org/git/?p=libvirt.git;a=commit;h=c08c7b0143b8cdc542e5f4137623d412340c5cf2
Needs a Signed-off-by.
Regards,
Anthony Liguori