Closing a file handle in parent

S

subrahmanya

Hi All

A process spawns another process and it inherits all the parent
process handles. While the child process is existing if parent process
closes a file handle will the corresponding handle be accessible in
child process or this gets closed automatically (on windows). I am
writing a program in C++ where I want the corresponding handle in
child process also be closed.

Thanks in advance
Subrahmanya
 
J

Jerry Coffin

(e-mail address removed)>, (e-mail address removed)
says...
Hi All

A process spawns another process and it inherits all the parent
process handles. While the child process is existing if parent process
closes a file handle will the corresponding handle be accessible in
child process or this gets closed automatically (on windows). I am
writing a program in C++ where I want the corresponding handle in
child process also be closed.

These issues are all related to the OS, not the language -- you'll need
to ask in a newsgroup specific to the OS you're using.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top