Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I'm new to this forum and to working with FIFO's, but have a 'hard' question. Sometimes when I want to write to a FIFO, I get the error: "Resource ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    3

    [SOLVED] FIFO: Resource temporarily unavailable

    Hi,

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

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

    My code:
    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.

  2. #2
    Just Joined!
    Join Date
    Feb 2009
    Posts
    3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...