- We need to keep the argument count at 5-6 no matter what, otherwise old containers in new hosts break
- In containers, we do not parse any arguments except for 5.
- The core_pattern is defined on the host.
I suggest we just split the command-line by "," as well. So if we have
host=old, container=old => everything as before
host=old, container=new => core_pattern as before, no effective changes
host=new, container=old => new core_pattern, container just forwards to host, host does parsing
host=new, container=new => fine too
So the situation is:
- We need to keep the argument count at 5-6 no matter what, otherwise old containers in new hosts break
- In containers, we do not parse any arguments except for 5.
- The core_pattern is defined on the host.
I suggest we just split the command-line by "," as well. So if we have
--pid=%p --signal=%s --core-size=%c --dump-mode=%d %P
we can extend that to
--pid=%p --signal=%s --core-size=%c --dump- mode=%d, foo-bar= %d %P
or we just drop the -- alltogether:
pid=%p signal=%s core-size=%c dump-mode= %d,foo- bar=%? %P
That should work:
host=old, container=old => everything as before
host=old, container=new => core_pattern as before, no effective changes
host=new, container=old => new core_pattern, container just forwards to host, host does parsing
host=new, container=new => fine too