Microsoft KB Archive/156319

{|
 * width="100%"|

BUG: Inherited Socket Becomes Invalid if Parent Exits on Windows 95 and Windows 98

 * }

Q156319

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), used with:
 * Microsoft Windows 95
 * Microsoft Windows 98

-

SYMPTOMS
If a child process is using a socket inherited from its parent, the socket will become unusable when the parent process exits. Winsock APIs such as send fail with WSAENOTSOCK.

WORKAROUND
To avoid this problem, you must ensure that the parent process is active as long as the socket is needed by the child processes.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.