You are not logged in.
In the kernel source I have adjusted the size of the FIFOs (named pipes):
... #define PIPE_SIZE 8192 // used to be PAGE_SIZE (4096) ...
Now when I read from the pipe (using the read function in a C program) and the pipe contains > 4096 bytes, my process crashes and gives a Segmentation Fault.
Could someone help me on this?
Thanks in advance!
Searching my local kernel source, I can't find any code that references that macro
at all... The only mention I can find is its definition in that header file you mention...
So, unless I'm missing something, I'd not expect changing it to do a damn thing!
Maybe your kernel source differs from mine... What version is it? And, did you
change anything else anywhere on the system?
But, why are you trying to change it, anyway? What exactly are you trying to do?
Increase the pipe buffer space? On my system (2.6.18, RHEL/CentOS modified),
there are actually 16 pages (64K) for each pipe buffer... This is controlled by
PIPE_BUFFERS defined in that same header file; and PIPE_SIZE seems to be
completely unused for anything, as I said...