Skip to contentSkip to conversation

FIFO: problems after changing size

DISCUSSION Jacques Dirac 1 participant 1 message May 20, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

In the kernel source (/include/linux/pipe_fs_i.h) I have adjusted the size of the FIFOs (named pipes):

#define PIPE_SIZE 8192

This used to be PAGE_SIZE (=4096bytes?).

Now when I read from the pipe (using the read function in a C program) and the pipe contains more than 4096 bytes, my process crashes and gives a Segmentation Fault.

Could someone help me on this?

Thanks in advance!

Jacques Dirac.