title: Clone, fork, vfork behaviour when followed by an exec
body: <p>I am curious about the behaviour of calling clone  from a process with most of the flags set (so that the two processes share an execution context, namely share the address space, file descriptor talbe, etc). I wasn't able to fully answer my question using the material online.</p>
  
  <p>Now assuming I call execve from the cloned process. This replaces the image of the process with a completely new one, destroys attached memory segments, discards allocated memory etc, but what happens to the parent process? Given these share (for example, all the malloced memory regions), do they also get deallocated? </p>
  
  <p>Does the new execved process still share an address space with the parent?</p>