Will valgrind work on Daemon programs?

Running valgrind in foreground programs is simple. But valgrind will work for daemon programs and give a result after its execution. And how do I do this? Thanks

+5
source share
1 answer

Yes, valgrind will certainly work for daemon programs.

Many daemons have some kind of debugging mode, for example, a switch -Xto apache, which will lead to them not plugging or going into the background, in which case the easiest way to defile them may be to use this so that they remain attached to the terminal.

valgrind, , , --log-file , --trace-children valgrind , .

, , , , .

+7

All Articles