When a divorce action is instituted, jurisdiction over the custody of the children born of the marriage vests exclusively in the court before whom the divorce action is pending and becomes a concomitant part of the subject matter of the court’s jurisdiction in the divorce action. G.S. 50-13.
Reece v. Reece,
Therefore, when the plaintiff wife instituted the instant action for divorce, the court became vested in this action with exclusive jurisdiction to enter orders respecting the care and custody of the infant child. This phase of the court’s jurisdiction was properly activated when the defendant filed his petition in the divorce cause praying the court for a determination of his custodial rights with respect to the child. Reece v. Reece, supra.
The defendant in petitioning for the custody of the child was seeking affirmative relief of a substantial nature. This being so, was it within the power of the clerk to divest the Superior Court of its jurisdiction by allowing the plaintiff to submit to a voluntary nonsuit during the course of the hearings and while the issue of custody was in fieri before the presiding judge? We think not.
*531 In McIntosh, North Carolina Practice and Procedure, Second Edition, Section 1645, the principle applied in numerous authoritative decisions of this Court is well stated as follows:
“While the plaintiff may generally elect to enter a nonsuit, ‘to pay the costs and walk out of court,’ in any case in which only his cause of action is to be determined, although it might be an advantage to the defendant to have the action proceed and have the controversy finally settled, he is not allowed to do so when the defendant has set up some ground f'or affirmative relief or some right or advantage of the defendant has supervened, which he has the right to have settled and concluded in the action.”
See also:
Bolich v. Ins. Co.,
We have not overlooked the decision in
Caldwell v. Caldwell,
The next question for decision is whether Judge Seawell’s order vacating the clerk’s judgment of nonsuit was immediately appealable. Not every order or judgment of the Superior Court is immediately appealable to the Supreme Court. The statute, G.S. 1-277, regulates the practice in respect to when an order or decree is subject to immediate review. This statute as construed and applied by numerous decisions of the Court is well analyzed and explained in detail by
Ervin, J.,
in
Veazey v. Durham,
Numerous authoritative decisions of this Court hold that a refusal of a motion to dismiss is not a final determination within the meaning of the statute and is not subject to appeal.
Johnson v. Pilot Life Ins. Co.,
The ruling from which the plaintiff attempted to appeal was the same in legal effect as if the plaintiff’s motion for dismissal as of voluntary nonsuit had been made in the first instance before Judge Seawell and by him refused. We conclude, therefore, that the Judge’s order reversing the clerk’s nonsuit was not appealable. The attempted appeal was a nullity, notwithstanding the Judge signed the appeal entries appearing of record. Veazey v. Durham, supra.
The decision in
Bailey v. McPherson,
Affirmed.
