From owner-freebsd-hackers Thu Apr 19 13:29:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sleipner.eiffel.dk (sub19-229.member.dsl-only.net [63.105.19.229]) by hub.freebsd.org (Postfix) with ESMTP id 6229037B43C for ; Thu, 19 Apr 2001 13:29:29 -0700 (PDT) (envelope-from Torben@ArchimedeSoft.com) Received: from ArchimedeSoft.com (sub19-225.member.dsl-only.net [63.105.19.225]) by sleipner.eiffel.dk (8.11.1/8.11.1) with ESMTP id f3TIvwN12013 for ; Sun, 29 Apr 2001 11:57:58 -0700 (PDT) (envelope-from Torben@ArchimedeSoft.com) Message-ID: <3ADF4A9E.C097EFA1@ArchimedeSoft.com> Date: Thu, 19 Apr 2001 13:29:18 -0700 From: "Torben K. Jensen" Organization: ArchimedeSoft Inc. X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD Hacker List Subject: 4.2-STABLE (Feb 20): mkfifo function hangs? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message