Closing a file handle in parent

Discussion in 'C++' started by subrahmanya, May 28, 2008.

  1. subrahmanya

    subrahmanya Guest

    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
     
    subrahmanya, May 28, 2008
    #1
    1. Advertising

  2. subrahmanya

    Jerry Coffin Guest

    In article <7b52be71-c113-48ff-a0b5-
    >,
    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.

    --
    Later,
    Jerry.

    The universe is a figment of its own imagination.
     
    Jerry Coffin, May 28, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dietrich
    Replies:
    1
    Views:
    670
    Joe Smith
    Jul 22, 2004
  2. sramruttun

    closing parent after pop up appears

    sramruttun, Aug 6, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    4,035
    Vidar Petursson
    Aug 7, 2003
  3. =?Utf-8?B?Vk1J?=

    Closing popup window when closing parent window?

    =?Utf-8?B?Vk1J?=, Feb 14, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    680
    Thomas Hansen
    Feb 15, 2007
  4. thomas
    Replies:
    0
    Views:
    253
    thomas
    Oct 23, 2003
  5. Antony Joseph
    Replies:
    5
    Views:
    81
    Chris Angelico
    Mar 21, 2014
Loading...

Share This Page