Operating System - HP-UX
1830899 Members
3408 Online
110017 Solutions
New Discussion

Re: device or address that does exit error with name pipe

 
Sup
Advisor

device or address that does exit error with name pipe

I have two process which use named pipe for their communication. Sometimes I get following message
/tmp/named_pipe: There is a request to a device or address that does not exist.
both process are running ( not crashed ), The process which writes data to named pipe fails.

The open() system call failing with errono=6

Any ideas?
3 REPLIES 3
Massimo Bianchi
Honored Contributor

Re: device or address that does exit error with name pipe

HI,
is the named pipe unique for the program ?

May be the two program cannot run concurrently.

Massimo

Umapathy S
Honored Contributor

Re: device or address that does exit error with name pipe

man page for errno says this.

[ENXIO] No such device or address. I/O on a special file refers
to a subdevice that does not exist, or is beyond the
limits of the device. It can also occur when, for
example, a tape drive is not on line or no disk pack is
loaded on a drive.

Can you post the snippet of the code?

-Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Adam J Markiewicz
Trusted Contributor

Re: device or address that does exit error with name pipe

Hi

Would it be a hint for you?

man 2 open
[...]
If O_NDELAY is set:
A read-only open() returns without delay.
A write-only open() returns an error if no process currently has the file open for reading.
[...]

Good luck
Adam
I do everything perfectly, except from my mistakes