title: CreateProcess occupies socket port (Only one usage of each socket address permitted) after exit
body: <p>I listen socket port 4000 in my process. I start another process using <code>CreateProcess</code> witch using another port number. after exit my process, when i try to start it again i received this error even when the child process is killed: </p>
  
  <pre><code>Only one usage of each socket address (protocol/network address/port) is normally permitted.
  </code></pre>
  
  <p>But when i start this process normally from explorer the is no conflict happens. What should i do to release the port for my usage?</p>
  
  <p>Edit: 
  I use this code to create the new process.</p>
  
  <pre><code>CreateProcessW(NULL, pwszCommandLine, NULL, NULL, TRUE, 
                NORMAL_PRIORITY_CLASS | CREATE_DEFAULT_ERROR_MODE | CREATE_NEW_CONSOLE, 
                NULL, NULL, &amp;si, &amp;pi)
  CloseHandle(pi.hProcess);
  CloseHandle(pi.hThread);
  </code></pre>
  
  <p>I don't wait to process finish, because this process should not exit. </p>