On Mon, 30 Nov 2026 20:39:02 +0530
Cheryl Bansal <[email protected]> wrote:

> rte_eal_init() is documented to return -1 with rte_errno set.
> rte_config_init() returns -1 without setting it, so a second primary
> process fails the config lock and the caller observes rte_errno 0.
> 
> Set EAGAIN at that failure. It is the code returned when the lock is
> held, and rte_eal_init() already documents it as a resource that can
> be retried. The same assignment covers the other config init failures,
> which matches the one code used for each later init stage.
> 
> Bugzilla ID: 2156
> Fixes: 4e8854ae89fa ("eal: do not panic on shared memory init")
> Cc: [email protected]
> 
> Signed-off-by: Cheryl Bansal <[email protected]>
> ---

I would use EBUSY since caller probably can't retry with any more succes

Reply via email to