UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2009-02-06 09:18 AM

jacquesdirac
Member
Registered: 2009-02-06
Posts: 15

Re: FIFO: Resource temporarily unavailable

Hi,

I'm new to this forum and to working with FIFO's, but have a 'hard' question :confused:.

Sometimes when I want to write to a FIFO, I get the error: "Resource temporarily unavailable".

My code:

...  
  assert(state == st_open);
  
  c = ::write(fd, buf, count);
  if (c == -1) {
    PM_DEBUG("Error writing to fifo, error: %s", strerror(errno));
  }
...

- Most important: What's wrong here?
- Is a FIFO stored in RAM?
- Can a FIFO ever get full? And how can a see / adjust the size of a FIFO?

Hope you can help me with this.

Offline

#2 2009-02-06 03:49 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: FIFO: Resource temporarily unavailable

Offline

#3 2009-02-11 08:48 AM

jacquesdirac
Member
Registered: 2009-02-06
Posts: 15

Re: FIFO: Resource temporarily unavailable

Thanks RobSeace for your great answer!

This was very usefull to me.

Offline

Board footer

Powered by FluxBB