src/Pure/Tools/isabelle_process.ML
changeset 28491 c5420429a5aa
parent 28343 7b605b8b7196
child 28498 cb1b43edb5ed
equal deleted inserted replaced
28490:40c3f900c457 28491:c5420429a5aa
    86           |> Position.default_properties pos;
    86           |> Position.default_properties pos;
    87       in output out_stream (special ch ^ message_props props ^ txt ^ special_end) end;
    87       in output out_stream (special ch ^ message_props props ^ txt ^ special_end) end;
    88 
    88 
    89 fun init_message out_stream =
    89 fun init_message out_stream =
    90   let
    90   let
    91     val pid = (Markup.pidN, string_of_pid (Posix.ProcEnv.getpid ()));
    91     val pid = (Markup.pidN, process_id ());
    92     val session = (Markup.sessionN, List.last (Session.id ()) handle List.Empty => "unknown");
    92     val session = (Markup.sessionN, List.last (Session.id ()) handle List.Empty => "unknown");
    93     val text = message_text Markup.initN [XML.Text (Session.welcome ())];
    93     val text = message_text Markup.initN [XML.Text (Session.welcome ())];
    94   in output out_stream (special "A" ^ message_props [pid, session] ^ text ^ special_end) end;
    94   in output out_stream (special "A" ^ message_props [pid, session] ^ text ^ special_end) end;
    95 
    95 
    96 end;
    96 end;