Writing to a named pipe imposible if there is no reading process running
From: Thanassis Dolmatzis (sinefula_at_web.de)
Date: 12/08/03
- Next message: Michael Kerrisk: "Re: Writing to a named pipe imposible if there is no reading process running"
- Previous message: Roger Leigh: "Re: Looking for Lightweight XML Parser/Builder"
- Next in thread: Michael Kerrisk: "Re: Writing to a named pipe imposible if there is no reading process running"
- Reply: Michael Kerrisk: "Re: Writing to a named pipe imposible if there is no reading process running"
- Reply: John Reiser: "Re: Writing to a named pipe imposible if there is no reading process running"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 8 Dec 2003 07:47:50 -0800
Wondering why I am the only programmer having this trouble, here is my
unsolvable problem.
Porting my C-Programms to SuSE Linux Enterprse Server8 was no big deal
except that:
I have a named pipe called "protpipe" and one process runing, reading
out of that pipe and writing the contents to a text file.
Whith this concept any process writing in this pipe will get its text
writen in the correct order in the text file without los of data.
On HP-UX and other Unix derivates, the writing processes had the
oportunity to write to that pipe even when the reading process wasn't
running. In that case an "ls -l protpipe" showed the size of the
writen bytes.
When i there after startet the reading process, the contents of the
pipe get in the text file as expectet.
I didn't found on Linux a way doing the same: If I try to write in to
the pipe when the reading process does not exist, the writing process
breaks up writing, or blocks depending on the Flags I set in the
"open()" system call.
Hoping You understand my English,
thanks for any help,
Athanasios Dolmatzis
P.S.:If necessary I could copy the coding in to the message.
- Next message: Michael Kerrisk: "Re: Writing to a named pipe imposible if there is no reading process running"
- Previous message: Roger Leigh: "Re: Looking for Lightweight XML Parser/Builder"
- Next in thread: Michael Kerrisk: "Re: Writing to a named pipe imposible if there is no reading process running"
- Reply: Michael Kerrisk: "Re: Writing to a named pipe imposible if there is no reading process running"
- Reply: John Reiser: "Re: Writing to a named pipe imposible if there is no reading process running"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|