Zhu Ming wrote: > I met a problem in IPC program in linux. My program needs a lot of Shared > memory. Then after execution, the program cleanup these shared memory. But > if I run the program several times, some error in the results. It seems > the memory in UNIX needs to be recoverd. Do you know how to do that except > reboot? Bear in mind that SysV IPC structures (including shared memory segments) persist after the program which created them terminates. Use "ipcs" to check for unused shared memory segments, and "ipcrm" to delete them. -- Glynn Clements <glynn@sensei.co.uk> - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu