Petitioner seeks a writ of prohibition directed to the Superior Court of the County of Los Angeles to arrest the rendition of a judgment by default against him in an action for false imprisonment, entitled “Arthur G. Penberthy v. Fernando Gerard, et al.,” No. 554662, on the ground that the purported service of the complaint and summons on him is wholly void and of no effect because he is immune and exempt from such service and the court therefore lacks jurisdiction over him.
Petitioner was and is a citizen of the Republic of Mexico, residing in Mexico City. He had been named a party defendant in an action entitled “A. C. Penberthy v. Distribuidora, S. A., a corporation, and Fernando Gerard,” No. 538089, in the Superior Court of Los Angeles County. About March 16, 1948, this action was set for trial on January 19, 1949. Petitioner was immediately notified thereof by his attorney and requested to “be personally present to testify as a witness therein and otherwise to assist in the defense thereof.” He assured him he would be present and on December 8, 1948, he informed him that certain kiln-drying lectures were scheduled to be given in Los Angeles at about the time of the trial and that since he was required to be in Los Angeles “he would like to attend said lectures to the extent and during such periods as his time and attention would not be required in connection with preparation for and participation in the aforesaid trial, or during the period of any delay in the actual commencement of said trial. ’ ’ He was advised by his attorney that such arrangement would be satisfactory “so long as he would be available- at any and all times on and after January 17, 1949, for all purposes connected with said trial.” Accordingly, on January 6, 1949, he enrolled for the course.
Petitioner purchased a round-trip ticket on Pan American Airways in Mexico City and arrived in Los Angeles on the evening of Sunday, January 16, 1949, at which time he immediately contacted his attorney and reported that he was available. He was advised by the attorney that he would be busy on the following morning preparing the case for trial and could not see him until the afternoon of that day. Petitioner then attended the morning session of the kiln-drying *551 lectures and in accordance with arrangements made with his attorney by telephone during the course of such morning, left the session at noon and reported to his attorney’s office about 2:45 p. m. on Monday, January 17, 1949. The conference with his attorney preparing for the trial lasted until 6 :45 p. m. Petitioner was then given copies of various depositions in the action and was requested by his attorney to study them. On the morning of Tuesday, January 18, petitioner had a telephone conversation with his attorney respecting these depositions and his attorney not desiring his presence that morning, he again attended the morning session of the kiln-drying lectures. At about 2 p. m. of that day he again conferred with his attorney, preparing for the trial. The conference extended until 6 :30 p. m. On Wednesday morning, January 19, the action was called and assigned for trial. At the conclusion- of the first day of the trial, as petitioner was leaving the courtroom and proceeding through the hallway, he was handed a copy of the summons and complaint in the false imprisonment action (No. 554662). He did not accept the summons or complaint but permitted them to fall to the floor and remain there while he and his attorney boarded the elevator. The trial continued for two additional days, concluding at about 4:15 p. m. on Friday, January 21. Petitioner was present in court throughout the trial. After its conclusion he again conferred with his attorney at his office concerning matters pertaining to the case just concluded. The conference terminated at about 6:15 p. m. In the evening of the same day petitioner contacted Pan American Airways but was unable to take the plane leaving that evening because of insufficient time within which to pack his effects and travel to the airport prior to the flight of the plane. He accordingly made a reservation and left for Mexico City on the next available flight, which was on Saturday evening, January 22, at 10:45 p. m.
Petitioner appeared specially in the false imprisonment action and moved the court to quash the purported service upon him. The motion was denied.
Petitioner alleges that he came to Los Angeles “solely because of the requirement that he be personally present to appear and testify at the aforesaid trial”; that his “only purpose” in enrolling for the kiln-drying lectures “was to utilize such surplus time as he might have during the course of his stay in Los Angeles when his time and attention would not be required in connection with preparation for and partici *552 pation in the aforementioned trial.” These allegations are established.
Respondent does not question the general rule that nonresidents of a state who come within the territorial limits of the state as parties litigant or to testify as witnesses in judicial proceedings are afforded an immunity or privilege from the service of civil process while in actual attendance at the hearing and during such reasonable time as may be consumed in going to, and returning from, the place of trial. (See collection of cases in 21 Cal.Jur. 530; 42 Am.Jur. §§ 139, 142, 143, pp. 119, 123, 124; 50 C.J. § 226 et seq., p. 547;
No definite rule can be laid down as to when the immunity from process is lost by a party or witness by reason of the period of time expended in going to, attending, and returning from the place of trial. The immunity or privilege has been held to extend for a reasonable time.
(Hammons
v.
Superior Court,
Service was attempted on petitioner during the course of the trial and not during a period prior or subsequent thereto. In
Linton
v.
Cooper,
It is not necessary, in order to have the benefit of the immunity or privilege, that a party or witness set out immediately after the trial, or take the most direct route. (See collection of cases in 42 Am.Jur. § 154, p. 133; anno., 11 Ann. Cas. 1148.) What is a reasonable time for returning to one’s domicile depends upon the particular facts of each case. Reasonable delays are allowable “provided they do not arise in carrying out a purpose entirely distinct from the purpose of going to, attending, or returning from court.” (42 Am. Jur. §154, p. 134; 50 C.J. §254, p. 560.) Where, as here, petitioner was a resident of Mexico and had purchased a round-trip ticket on a particular airline, he was not required, under the circumstances, to return to his domicile by another airline, or by train or bus, merely because such other means of transportation afforded an earlier departure. The language used by the court in
Turner
v.
Randall,
Petitioner’s immunity was not affected in any way by reason of his enrollment and attendance at the kiln-drying lectures during the mornings only of January 18 and 19, being the only times he was not required on those days to confer with his attorney and prepare for the trial. It is clear that the main and controlling reason for petitioner’s presence in California was the pending trial and his attendance
*554
at the lectures was solely to consume surplus time not required in connection with the trial. This activity was wholly incidental and subordinate to the primary purpose of his presence in California. In applying the principle of immunity, the courts follow one of two theories: In one, which may be termed the “sole purpose doctrine,” the courts take the position that the privilege is not to'be invoked unless the person’s sole business in the foreign jurisdiction is to attend the litigation and that the protection is gone if, with that affair, other business is intermingled. In the other, which may be termed the ‘ ‘ controlling reason doctrine,” the courts take the view that it is sufficient for the preservation of the privilege that attendance upon court business constitutes the main and controlling reason for the litigant’s or witness’ presence in the state, and that as long as this is true he may transact some other business not connected therewith. (See collection of cases,
The service of summons on petitioner was void. Prohibition is the appropriate remedy.
(Hammons
v.
Superior
Court,
Let the peremptory writ issue as prayed.
Shinn, P. J., and Wood, J., concurred.
