1

What happens to interprocess memory if one of the processes dies unexpectadly?

view story
linux-howto

http://stackoverflow.com – if you are interested in motivation Ill elaborate it in next few sentences, if not just skip to the Q. I was thinking about making fast logger but the one that is not affected when program crashes(aka few last log msgs arent lost). So my idea is to write to the shared memory(ringbuffer) and have another low prio process read from it and do the dumping. But for that to work I need to know what happens to shared memory if one process exits(normal exit, SEGFAULT)... So my question is: What happens to shared memory (in Linux, but you can A for Win also) when one of the procs die? Is it UB? (HowTos)