Upon this writ of error the defendant, William C. Graham, President of the County Court of Hancock County, West Virginia, seeks reversal of a final judgment of the Circuit Court of Hancock County rendered December 14, 1962, in a mandamus proceeding instituted in that court, in which the plaintiff, Joseph Manypenny, Sheriff of Hancock County, sought a writ to require the defendant to issue an order for the payment of a certain monthly salary to each of two employees of the plaintiff as such sheriff from and after the first day of July, 1962 and during the remainder of the fiscal year 1962-1963 or until the sooner termination of such employment.
The circuit court by its final order of December 14, 1962 awarded a writ of mandamus requiring the defendant William C. Graham to issue an order for the payment to Eleanor Patterson, an employee of the plaintiff Joseph Manypenny, of a salary of $385.00 per month from July 1,1962 to the date of the judgment and thereafter during the remainder of the fiscal year 1962-63, unless her employment should sooner terminate, and to issue an order for the payment to Irene Cullen, an employee of the plaintiff Joseph Manypenny, of a salary of $335.00 per month from July 1, 1962 to the date of the judgment and thereafter during the remainder of the fiscal year 1962-63, unless her employment should also sooner terminate. To that judgment this Court granted this writ of error and supersedeas upon the application of the defendant.
Pursuant to written notice dated December 7, 1962 and duly served upon the defendant, the petition for a writ of mandamus was filed in the Circuit Court of Hancock County on December 14, 1962. According to recitals in the order, entered by the circuit court on that day the plaintiff appeared in person and by his attorney, and the defendant also appeared in person but was not represented by counsel. Upon the filing of the petition the circuit court inquired of *58 the defendant if he desired time in which to file an answer or to obtain counsel to represent him in the proceeding and the defendant replied that he did not desire counsel and that the allegations in the petition were true. The circuit court, after hearing evidence adduced by the parties and the argument of counsel, found “the issue in favor” of the plaintiff and awarded a writ of mandamus which required the defendant to issue orders for the payment of salary to the two employees of the plaintiff, as provided in the final judgment, and awarded costs in favor of the plaintiff.
The petition upon which the foregoing judgment was rendered contained, among others, the allegations that the plaintiff is sheriff of Hancock County; that his term of office extends from January 1, 1961 to December 31, 1964; that on or before February 1, 1962, he filed with the county court a detailed statement of the amount necessary to be expended for deputies, assistants and other employees of his office for the following fiscal year; that in such statement he listed a specific salary for each employee; that the salary for Eleanor Patterson is listed as $4,620.00 for the fiscal year 1962-63 and the salary for Irene Cullen as $4,020.00 for the same fiscal year; that the salary for each of them constituted an increase in salary over the previous fiscal years of $25.00 per month; that the county court considered such detailed statement and approved the aggregate sum to be expended for the period covered by the statement; that such sum was made a part of the levy of the county which was finally approved by the county court on April 17, 1962; that the plaintiff fixed the compensation of Eleanor Patterson at $4,620.00 for the fiscal year 1962-63 at the rate of $385.00 per month, and the compensation of Irene Cullen at $4,020.00 for the fiscal year 1962-63 at the rate of $335.00 per month; that the list of salaries for all deputies, assistants and other employees was filed with the clerk of the county court and did not exceed the aggregate amount for the office of the plaintiff as approved by the county court; that the defendant, as president of the county court, refused to pay the salaries for the two employees of the plaintiff for the fiscal year 1962-63 and would only sign an order for the payment of the salary for the fiscal year 1961-62; and that from July 1, 1962 the de *59 fendant, as president of the county court, paid to the two employees as a monthly salary a sum which is $25.00 per month less than the salary set forth in the statement filed with the clerk and which was within the aggregate amount listed for the office of the plaintiff.
After the entry of the final judgment no further proceedings were had until December 28, 1962, at which time the defendant, having obtained counsel, moved the circuit court to vacate the order entered December 14, 1962, to quash the writ of mandamus awarded by that order, and to dismiss the petition of the plaintiff. By order entered December 28, 1962 the circuit court overruled each of the motions and suspended execution of the judgment for a period of sixty days or until February 28, 1963. On January 30, 1963, the defendant filed a motion to reverse the judgment of December 14,1962, and in support of the motion filed an affidavit of the clerk of the county court of Hancock County and also filed a demurrer to the petition of the plaintiff. The circuit court designated February 15, 1963 for a hearing upon the motion and by order entered on that date overruled the motion, refused to hear argument upon the demurrer of the defendant, and suspended execution on the judgment until action by the Supreme Court of Appeals upon any petition presented to it for a writ of error. Upon motion of the defendant, the circuit court, by order entered April 10, 1963, granted a suspension of execution on the final judgment for a period of ninety days from February 28, 1963.
The grounds assigned in support of the motion of the defendant to reverse the judgment rendered December 14, 1962, which were supported by an affidavit of the clerk of the county court of Hancock County, were that the plaintiff has not filed a verified budget and payroll as required by Section 7, Article 7, Chapter 7, Code, 1931, as amended, or a statement of receipts or the receipts showing payment into the treasury, as required by Section 8 of the same article and chapter, and that neither the employee Patterson nor the employee Cullen has filed the receipts as required by Section 9 of the same article and chapter. The defendant also assigned as grounds of demurrer that the clerk of the *60 county court is a necessary party and that no rule to show cause was issued upon the petition in this proceeding.
The final judgment rendered December 14, 1962, which awarded the writ of mandamus, and the subsequent orders entered December 28, 1962 and February 15, 1963, which overruled the motion of the defendant to vacate and reverse the final judgment to enable the defendant to enfer a demurrer to the petition and permit him to present any defense in his behalf in this proceeding, are free from prejudicial error and the action of the circuit court in rendering the judgment of December 14, 1962 and in overruling the foregoing motions of the defendant to vacate and reverse that judgment was correct and proper.
There is no merit in the contention of the defendant that the clerk of the county court is a necessary party to this proceeding for the reason that the only specific relief prayed for by the petitioner is that the defendant be required to issue an order for the payment of the designated salaries and for the further reason that there is no showing in the record that the county clerk has refused to sign or will not voluntarily sign and join in the issuance of any such order.
Though, as stated in point 2 of the syllabus in
State ex rel. Smith
v.
Bosworth,
The object of process is to cause a defendant to appear in court; and when a defendant has made a general appearance the function of process has been accomplished and he
*61
can not voluntarily appear without objection and waive his right to answer a petition and then take advantage of the absence of the issuance of process against him.
Root-Tea-Na-Herb Company
v.
Rightmire,
The action of the defendant in appearing to the petition and failing to file an answer and in stating that he did not desire counsel and that the allegations in the petition were true, was a general appearance in the proceeding,
Stone v. Rudolph,
Though the petition was not skillfully drawn and omitted allegations that the plaintiff had complied with certain provisions of Sections 7, 8 and 9, Article 7, Chapter 7, Code, 1931, as amended, which rendered the petition demurrable, those omissions do not render the petition fatally defective for failure to state a cause of action; and those defects in the petition, not being vital and not having been challenged by demurrer, were waived by the defendant by his failure to demur or otherwise challenge the sufficiency of the petition. Moreover, the final judgment rendered December 14, 1962 is not subject to reversal by reason of the pertinent provisions of Section 2, Article 1, Chapter 58, Code, 1931, that no judgment shall be arrested or reversed “for any defect, imperfection, or omission in the pleadings, which could not be regarded on demurrer; or for any other defect, imperfection, or omission, which might have been taken advantage of on a demurrer or answer, but was not so taken advantage of.”
In the early case of
Holliday’s Ex’rs
v.
Myers,
By making a general appearance in this proceeding, in refusing to file an answer and to obtain counsel to represent him, and in admitting the truth of the allegations of the petition of the plaintiff, all of which was voluntary, the defendant waived his right to interpose a defense to the claim of the plaintiff and after the entry of the final judgment he was not entitled to have the judgment vacated or reversed to enable him to make a defense which he had refused to make before the entry of the judgment. In
Barbour, Stedman and Herod
v.
Tompkins,
A trial court has the power in its discretion to modify, set aside or vacate any judgment or decree during the term in which it is rendered. This power must be exercised with a sound discretion and not in an arbitrary or capricious manner; and if the trial court has acted in the exercise of a sound discretion an appellate court will not interfere except for the most cogent reasons.
Parkersburg National Bank v. Neal, 28
W. Va. 744;
Mathews
v.
Tyree,
By Rule 81 (a) (5) of the Rules of Civil Procedure those rules do not apply to proceedings in mandamus, prohibition, certiorari, habeas corpus, quo warranto and an information in the nature of quo warranto; and in the absence of a showing of abuse of discretion, the refusal of a trial court to set aside or modify a final judgment in a mandamus proceeding, to which the Rules of Civil Procedure do not apply, will not be disturbed by this Court on writ of error.
As there is no showing that the circuit court abused its discretion in refusing to vacate or reverse the final judgment rendered December 14, 1962, that judgment must be, and it is, affirmed.
Affirmed.
