Create socket before fork()