LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 05-07-2004, 09:22 AM   #1
sudheernair
LQ Newbie
 
Registered: Apr 2004
Posts: 7

Rep: Reputation: 0
Unhappy open function returns error


i am creating a pipe for communication. for that i created a file with mkfifo passing a file path. after that i try to open the file with open function passing same file path. but it returns -1 and perror says 'no such device or address'. when i check the path, there is file created and present. why it like that. the same code worked earlier...
Thanks
Sudheer
 
Old 05-07-2004, 10:37 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,524

Rep: Reputation: 93
Make sure there's a process trying to read from the fifo before opening with "O_NONBLOCK" specified to the open function.

Or don't use "O_NONBLOCK"...
 
Old 05-07-2004, 11:14 AM   #3
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
post code.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++: compiler returns an error, can't figure out why frankie_DJ Programming 6 10-16-2005 09:15 AM
`su' returns error message anindyanuri Linux - Software 6 10-08-2005 05:00 PM
C function that returns $HOME cbranje Programming 1 02-12-2005 05:41 PM
XConfigurator returns error yodathecoda Linux - Newbie 2 08-09-2004 04:07 PM
make xconfig returns ld error (collect2) quan1201 Linux - Newbie 0 04-05-2004 10:12 AM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration