fopen doesn't return when opening a fifo!!

Ben Abbott bpabbott at mac.com
Mon Mar 31 08:49:13 CDT 2008


On Mar 31, 2008, at 9:15 AM, David Bateman wrote:
> The following code fragment fails for me on Octave 3.0.x and 3.1.x
>
> tn = tmpnam ();
> ## 6*8*8 = 0600 mode
> [err, msg] = mkfifo(tn, 6*8*8)
> gpin = fopen (tn, "r");
> fclose (gpin);
> unlink (tn);
>
> as the fopen on the fifo does not return. I originally thought this
> might be an issue with my libc on my 64-bit system, but the same  
> occurs
> on an old 32-bit system. Do others see the same bug? Anyone know  
> what is
> going on?
>
> D.

Yes I see the same, and my activity monitor indicates Octave is idle.

Ben 


More information about the Bug-octave mailing list