Created doublefork() method for special fork case