[CRIU] Restoring multiple copies of the same process

Christopher Covington cov at codeaurora.org
Thu Dec 10 12:46:04 PST 2015


On 12/10/2015 05:11 AM, Pavel Emelyanov wrote:
> On 12/10/2015 11:23 AM, Artem Kuzmitskiy wrote:
>> We also thinking about better way of decision  this problem. 
>> And already discussed it here -> https://github.com/xemul/criu/issues/59.
>> One of the possible and non-better way is use crit with sed and LD_PRELOAD with own implementation of getpid :)
> 
> I would say it's not only about getpid() as glibc's call. It's also
> teaching glibc itself, that syscall would return wrong value.

If you really wanted to, it seems like you could use ptrace to modify
the system call return value. (PID-namespace-in-userspace?)

Regards,
Christopher Covington

-- 
Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


More information about the CRIU mailing list