UnifyFS
UnifyFS copied to clipboard
Daemonize function and server/client connection
I'm using SLURM, mvapich, and srun to launch the server and client processes.
When the daemonize() function is used and the client write test is called the unifycr_mount call fails.
The stack trace looks like this:
unifycr_mount -> unifycrfs_mount -> unifycr_init_socket -> connect
The connect call fails in unifycr_init_socket with a return code of (-1).
Looks like using mvapich the child process (after the fork in daemonize) is not getting past the MPI_init_thread call (it's exiting somewhere in here). The fork() call isn't working correctly with mvapich.
daemonize()
also causes failed connections on IBM LSF/CSM machines like summitdev