Hi:
I have some queries regarding the cleanup of file descriptors (or
connection ids) by a resource manager handling those connections.
-
If a process terminates, without close()ing all open fds, is an
_IO_CLOSE message still generated and sent to the resouorce manager?
-
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).
-
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.
- If a process terminates, without close()ing all open fds, is an
_IO_CLOSE message still generated and sent to the resouorce manager?
Yes.
- 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.
- 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.