[PATCH v3 2/3] eal: handle sysconf(_SC_PAGESIZE) negative return value
Thomas Monjalon
thomas at monjalon.net
Fri Jun 27 17:58:10 CEST 2025
24/06/2025 10:03, Morten Brørup:
> + if ((ssize_t)page_size < 0)
> + rte_panic("sysconf(_SC_PAGESIZE) failed: %s",
> + errno == 0 ? "Indeterminate" : strerror(errno));
We don't want more rte_panic().
You could log the problem and return 0 here.
It will be a problem later, but it may allow the application to cleanup
instead of abrupting crashing.
More information about the dev
mailing list