On Sun, Sep 07, 2003 at 01:31:35PM +0300, Denis Ovsienko wrote: [...] > Вот и всё, и не нужно говорить, что это не работает. Точно такое же Это не работает. Точнее говоря, приведённый тест не имеет никакого отношения к обсуждаемой задаче. Цитирую susv3/functions/semctl.html: IPC_RMID Remove the semaphore identifier specified by semid from the system and destroy the set of semaphores and semid_ds data structure associated with it. Цитирую susv3/functions/shmctl.html: IPC_RMID Remove the shared memory identifier specified by shmid from the system and destroy the shared memory segment and shmid_ds data structure associated with it. Цитирую susv3/functions/msgctl.html: IPC_RMID Remove the message queue identifier specified by msqid from the system and destroy the message queue and msqid_ds data structure associated with it. Короче говоря, IPC_RMID сразу уничтожает ресурс. Ни о какой уборке мусора не может быть и речи. Все остальные процессы, обращающиеся к этому ресурсу, получают (в лучшем случае) ошибку EIDRM. -- ldv