tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Gadde, Srinivas" <srinivas.gadde () compaq ! com>
To: tru64-unix-managers
Subject: A small question on named pipes
Date: Fri, 27 Apr 2001 17:21:12 +0000	[thread overview]
Message-ID: <102653646721781.tru64-unix-managers.marc@archive.invalid> (raw)

Hello,

	I am porting a named pipe based applications and I am getting
an errno 16 which is "EBUSY" from ioctl (fd, I_SENDFD, pipe[1])
and also on other program from ioctl(fd,I_RECVFD, pipe[1])

1). I created the named pipe with "mknod server.pipe p" command
2). in Program A

   functionA()
{
        int             dm_fd;
        int             ld_fd[2] = {-1,-1};  
.
.
.

	dm_fd = open(SERVER_PIPE,O_RDWR,0666);
	Rc = pipe(ld_fd);    
.
.
.
         write(ld_fd[0],Request,sizeof(struct command_s)); /* This may be
out of sequence, I don't know ,
							But I am writing on
0 */
.
.
	io_rc = ioctl(dm_fd,I_SENDFD,ld_fd[1]);     

            /* I get an errno 16 (EBUSY) */

}

In Program B

FunctionB ()
{
int Sd;  
struct  strrecvfd       Fds; 

Sd = open(SERVER_PIPE,O_RDWR,0666);
.
.
fattach(Sd,SERVER_PIPE);   
.
.
Rc = ioctl(Sd,I_RECVFD,&Fds);
/* I get an error EBUSY errno 16 */

}


Any help is greatly appreciated.
             	

                 reply	other threads:[~2001-04-27 17:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox