I have a C process which is running as a daemon. Because of an error, it is segfaulting and terminates.
To find the problem I have enabled ulimit -c unlimited
to get the coredump to analyze. But the coredump file is not generated. If I run the process without daemonizing then the coredump gets generated. The problem only happens when daemonzing the process.
What is the way to generate coredump for daemonized process?