Posted this on freebsd_questions yesterday, but didn't yield any
responses, so I'll run the risk of being un-PC and post it here as well. 

My question is simple: Could there be situations when the mkfifo
function might hang? I am currently developing a daemon which uses a
named pipe to communicate with any second instances of it the user might
attempt to start. The behavior indicating a hangup occurs when the
daemon is started, has created the fifo, opened the file for reading
(fopen) and
then for some reason dies disgracefully in the middle of an fread call.
If I subsequently try to start up my daemon again, the very same mkfifo
call apparently hangs (at least that's what DDD tells me). I would
expect it to return an error code instead.
If anyone is interested in looking at this, but would like to see some
source code, please let me know.

Thanks for you time,
-- 
Torben K. Jensen

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to