I created TCP server which is up and running and loading the dynamic library and using it
1.if dynamic library cause segmentation fault it is crashing my server . I don't want to crash my server . I used signal handler and exited but I want server to continue how can I do it
2. If my server crashes how can I restart automatically is there any script or some thing to restart.
if dynamic library cause segmentation fault it is crashing my server . I don't want to crash my server .
You'll have to run unsafe code in a separate process and let that crash and manage it. If some component's corrupted your global heap or something like that, there's not a lot you can do within the process.