run_erl/to_erl on FreeBSD

Bjorn Gustavsson <>
Wed Mar 30 09:24:39 CEST 2005


Yes, that is correct.

I changed mknod() to mkfifo() because mknod() on Mac OS X
requires the user to be root, even when creating a FIFO.
mkfifo() is the recommended way to create a FIFO, and is
supposed to work on all modern Unix platforms, so I found no
reason to continue to use mknod() on platforms where it works.

Our test case for run_erl/to_erl runs succesfully on FreeBSD.
We use the following version of FreeBSD:

FreeBSD 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003

Which version of FreeBSD do you use? Does run_erl run using
R10B-2 or R10B-3?

/Bjorn

Sean Hinde <> writes:

> Hi Vance,
> 
> The only thing that changed (in R10B-2 as far as I can see) is that
> the call to mknod in run_erl.c was replaced with a call to mkfifo in
> run_erl.c. This fixed things for OS X, but maybe not all BSDs are
> equal in this regard.
> 
> Regards,
> Sean
> 
> 
> 
> On 29 Mar 2005, at 05:39, Vance Shipley wrote:
> 
> >
> > Is anyone able to use R10B-4 to_erl with FreeBSD?
> >
> > Here (4.10-STABLE) I see run_erl fail to open the pipe to
> > write on and to_erl gets EOF reading from it's pipe.  I
> > spent quite a bit of time today trying to get to the bottom
> > of it but I'm stumped.
> >
> > 	-Vance
> >
> 

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list