views:

36

answers:

1

Can I use select and poll on the Named pipe handle in windows? It will be great if an example can be given. (I am very new to windows programming)

In case one of process goes down and I am polling on other end, will I get any error message on the other process that the process is down?

A: 

If you're doing a non-blocking read on the pipe, closure of the other end of the pipe (by process failure) will cause that read to return, with an error.

If you're doing a blocking read, the read will fail, as the pipe has been disconnected.

Blank Xavier