send to socket: Bad file descriptor

From: ormancey (n.ormancey_at_focal.fr)
Date: 04/27/04


Date: 27 Apr 2004 02:37:01 -0700

hi everybody,

a newbie question again

i made a socket in a task
and i read data on this socket in a child task
i want to write data to this socket with a other child but i have this message
send: Bad file descriptor

if some one has an idea to let me write to this socket ??

thanks



Relevant Pages

  • Re: send to socket: Bad file descriptor
    ... > a newbie question again ... > and i read data on this socket in a child task ... > send: Bad file descriptor ...
    (comp.os.linux.development.system)
  • send to socket: Bad file descriptor
    ... a beginner question again ... i have made a socket in a parent task and when i try to send data by ... this socket with my child task i have this message: ...
    (comp.os.linux.embedded)
  • Re: given an fd, how to tell if its open?
    ... Your process may inherit open fd's from a parent ... like a socket. ... start any new Applix sessions - disastrous with over 400 users over ... up on a consistent file descriptor. ...
    (comp.unix.programmer)
  • Re: send file descriptor via ipc
    ... numbers into 'struct file' references. ... buffer for the remote socket. ... them into the file descriptor array of the receiving process. ... descriptors that are referenced only by disconnected UNIX domain sockets ...
    (freebsd-hackers)
  • Re: Proposal: a revoke() system call
    ... You could achieve something of the same end by opening /dev/null and then dup2'ing to the file descriptor you want to revoke, ... Right now there's a known issue that calling closeon a socket from one thread doesn't interrupt a socket in a blocking I/O call from another thread -- you first have to call shutdown, ... Another example of a "reader thread" would be ... the main thread of a daemon that accepts the incoming connections ...
    (freebsd-arch)