Re: dlopen() on a fifo

[email protected] (Matthias Scheler)
Newsgroups gmane.os.netbsd.devel.general
Message-ID <[email protected]>
In article <[email protected]>,
	Kirk Russell <[email protected]> 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.