Skip to content

Commit

Permalink
DAOS-16637 pydaos: disable atfork handler (#15292)
Browse files Browse the repository at this point in the history
Disable call to pthread_atfork and daos_reinit() in pydaos
until DAOS-16637 is understood.

Signed-off-by: Johann Lombardi <[email protected]>
  • Loading branch information
johannlombardi authored Oct 11, 2024
1 parent 6177922 commit 24700c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/pydaos/pydaos_shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ static daos_handle_t eq;
* Implementations of baseline shim functions
*/

#if 0
static void
child_handler(void)
{
Expand All @@ -84,6 +85,7 @@ child_handler(void)
if (rc)
DL_ERROR(rc, "Failed to re-create global eq");
}
#endif

static PyObject *
__shim_handle__daos_init(PyObject *self, PyObject *args)
Expand All @@ -101,11 +103,14 @@ __shim_handle__daos_init(PyObject *self, PyObject *args)
return PyLong_FromLong(rc);
}

#if 0
/** disabled due to DAOS-16637 */
rc = pthread_atfork(NULL, NULL, &child_handler);
if (rc) {
DL_ERROR(rc, "Failed to set atfork handler");
return PyLong_FromLong(rc);
}
#endif

return PyLong_FromLong(rc);
}
Expand Down

0 comments on commit 24700c3

Please sign in to comment.