Hi! > - if (msgsnd(id, &m, sizeof(struct sysv_msg) - sizeof(long), 0) == -1) { ^ I think that sizeof(m.mtext) would be cleaner As due to a padding the actuall size of a structure may be bigger than the sum of it's members... Other than that the rest of the code looks good. -- Cyril Hrubis chrubis@suse.cz