Subject: Re: dlopen() on a fifo
To: None <tech-misc@NetBSD.org>
From: Matthias Scheler <tron@zhadum.org.uk>
List: tech-misc
Date: 05/12/2006 10:11:19
In article <Pine.NEB.4.44.0605110951200.25073-100000@greyhawk.on.kr>,
	Kirk Russell <kirk@ba23.org> writes:
> I am using NetBSD 3.0.  I found that dlopen() will block if the given
> path is a fifo:
> 
> 	$ mkfifo -m a+wrx afifo
> 	$ ksh -c "LD_PRELOAD=./afifo /usr/bin/true"
> 	[... blocked ...]
> 
> Is this expected behaviour?

Yes. Processes get blocked if they try to read from a FIFO and there is
no writer.

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/