some questions about descriptors

From: Frederick Barnes (frmb2@ukc.ac.uk)
Date: Fri Jun 02 2000 - 10:35:37 EST


Hello all,

I'd be grateful if somebody could throw some light on what is
supposed to happen in the following scenarios, or what actually
happens. In all cases, a number of processes share the same
file-descriptor table (via clone());

* is reading from a descriptor in one clone, and writing to it
  in another safe ?
* if a clone is blocked reading/writing from a descriptor, does
  close()ing it in another clone cause an error return from the
  blocked clone ? does the same happen if the descriptor is in
  a select() set (and blocked), when the descriptor is close()d
  in another clone ?

Most of the time, these descriptors will be socket descriptors, but
could be normal files/pipes/etc. as well.

TIA,
  Fred

-- 

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:15 EST