Cleanup of coid/fd

Hi:

I have some queries regarding the cleanup of file descriptors (or
connection ids) by a resource manager handling those connections.

  1. If a process terminates, without close()ing all open fds, is an
    _IO_CLOSE message still generated and sent to the resouorce manager?

  2. How does a resource manager (say a filesystem resource manager) get
    notified about a process crashing, while still having open fds (which
    might have locks).

  3. What is the status of such coids, on a crash?

Help would be greatly appreciated.

-Rommel

Rommel Dongre <rdongre@pillardata.com> wrote:

Hi:

Answered in detail elsewhere by someone else.

I have some queries regarding the cleanup of file descriptors (or
connection ids) by a resource manager handling those connections.

  1. If a process terminates, without close()ing all open fds, is an
    _IO_CLOSE message still generated and sent to the resouorce manager?

Yes.


  1. How does a resource manager (say a filesystem resource manager) get
    notified about a process crashing, while still having open fds (which
    might have locks).

It gets _IO_CLOSE.

  1. What is the status of such coids, on a crash?

They get closed.

-David

Help would be greatly appreciated.

-Rommel


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.