[PATCH v3] lib/eal: fix segfaults due to thread exit order

Stephen Hemminger stephen at networkplumber.org
Mon May 30 18:28:52 CEST 2022


On Mon, 30 May 2022 13:47:38 +0000
zhichaox.zeng at intel.com wrote:

> @@ -883,6 +896,8 @@ rte_eal_init(int argc, char **argv)
>  
>  	eal_mcfg_complete();
>  
> +	pthread_atfork(NULL, warn_parent, scratch_child);
> +
>  	return fctret;
>  }

There are lots of other cases where DPDK will die if you fork()
in a DPDK process then call DPDK functions in child. 

Not sure what the problem you are trying to solve is?


More information about the stable mailing list