In December, 1887, the prisoner obtained a decree of divorce from his wife, Elka Gordan, on the ground of desertion. In his complaint for a divorce, he alleged that the issue of his marriage with Elka Gordan was one female child, born August, 1885. He did not state the name of the child, nor did he allege any facts showing his fitness or his wife’s unfitness to have her custody. The answer of Elka Gordan admitted the marriage, but denied generally all other allegations of the complaint, including of course the existence of the child. Neither party prayed for her custody, though the complaint contained a prayer for general relief. The court, by its judgment granting the divorce, further ordered and decreed: “ That the custody of the child of said marriage, to wit, Leah Gordan, aged two years old, be, until the further order of this court, placed in the charge and custody of the grandmother, Sarah Patek, to be by her cared for and sustained at the expense of plaintiff, Robert Gordan, in the city and county of San *376Francisco, California, and shall not be removed therefrom until further order of this court, or by consent of both parties, plaintiff and defendant.”
It appears from the evidence that this provision of the decree was inserted in pursuance of an agreement of the parties, by which the plaintiff promised to pay for the support of the child the sum of twenty-five dollars per month. This agreement he performed punctually up to the month of December, 1889, when he refused to make any further payments. In January, 1890, Sarah Patek obtained a rule from the superior court commanding the plaintiff to show cause why he should not be required to pay forty dollars per month for the support of the child, and on the 25th of January, 1890, upon the hearing of the rule, an order was made in the action of Gordan v. Gordan, requiring Robert Gordan to pay to Sarah Patek, at her residence in San Francisco, the sum of thirty dollars per month for the support of said child, designated in these proceedings, as Lina or Lena Gordan. This order was complied with up to January, 1891, since which time the plaintiff has refused to make any further payments. In consequence of such refusal, several proceedings have been instituted against him, one of which is reviewed in Ex parte Gordan, 92 Cal. 478. After the decision in that case, plaintiff was again, in February, 1892, cited to show cause why he should not be punished for contempt of court in refusing to obey the order of January 25,1890. In response to this order he appeared by counsel, and the court, after a full hearing, adjudged him guilty of the contempt charged, and ordered him to be imprisoned in the county jail until he paid the amount due and unpaid under said order of January, 25, 1890. Upon this order, a warrant was issued, under which the plaintiff was imprisoned by the sheriff of Solano County, and thereupon this proceeding was instituted for the purpose of securing his discharge from custody.
Four objections are made to the validity of the commitment: L That under the pleadings in Gordan v. Gordan, the court had no jurisdiction to award the custody of *377Leah Gordan to Sarah Patelc; 2. That the court had no jurisdiction to order the plaintiff to pay money to Sarah Patek, a stranger to the action; 3. That the order of January 25, 1890, is to pay money for the support of Lina Gordan, a different person from Leah Gordan; 4. That it is a violation of the constitution to enforce this order by imprisonment.
As to the first point, I think section 138 of the Civil Code gave the court jurisdiction to make a proper order for the custody of the child. Its jurisdiction did not depend upon specific allegations as to the fitness of the respective parties, or their ability or willingness to care for their offspring, nor upon a specific prayer for the custody. The pleadings would seem to indicate that one of the parties was oblivious of the child’s existence, and that both were indifferent as to what should become of her; but this did not prevent the court from taking care of her interests. On the contrary, it furnished a good ground for the order that was made. Nor is it any objection to the validity of the order that there were no proceedings under sections 1747 et seq. of the Code of Civil Procedure. Those sections prescribe the proceedings for the appointment of guardians generally, and afford one means of acquiring jurisdiction to dispose of the custody of minors, but they are not exclusive. In actions for divorce, the court may always make such orders for the custody and maintenance of minor children of the marriage as may seem to be necessary. (Civ. Code, sec. 138.)
2. The order of January 25,1890, was not a judgment in favor of a stranger. It was an order for the payment of money to an agent or officer of the court, charged with the duty of carrying its decree into effect. The decision in Sharon v. Sharon, 75 Cal. 38, 39, has no application. The power to compel the father to support his minor child does not depend wholly upon section 139 of the Civil Code. Whether he is with or without fault in the matters involved in the divorce suit, it is primarily his duty to support his minor children. (Civ. Code, secs. *378196, 197.) The wife, by her fault, may forfeit her own claim to be supported by her husband, but she cannot forfeit the claims of their children.
3. The names Lena or Lina Gordan and Leah Gordan are not the same, nor are they idem sonans, but it happens that the child so variously designated is sufficiently identified throughout these proceedings by other terms of description, e. g., the sole issue of the marriage of Robert and Elka Gordan.
4. The last objection is the most serious of all, and if the question were a new one, I should hesitate to decide that payment in this case can be enforced by imprisonment, but I can see no distinction in principle between orders for the payment of alimony to the wife and orders to pay money for the support of minor children; and it is settled in this state that refusal to pay alimony is a contempt of court, punishable by imprisonment, or, what is the same thing in effect, that a party found to have the ability to pay may be imprisoned until he obeys. (Ex parte Perkins, 18 Cal. 60; Ex parte Cottrell, 59 Cal. 417.)
I see nothing unlawful in the imprisonment. The writ is discharged, and the prisoner remanded.