Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  26 Nov 2009, Konstantin Olchanski, Bug Report, "mserver -s" is broken 
    Reply  27 Nov 2009, Stefan Ritt, Bug Report, "mserver -s" is broken 
       Reply  27 Nov 2009, Konstantin Olchanski, Bug Report, "mserver -s" is broken 
Message ID: 680     Entry time: 27 Nov 2009     In reply to: 678     Reply to this: 681
Author: Stefan Ritt 
Topic: Bug Report 
Subject: "mserver -s" is broken 
> I notice that "mserver -s" (a non-default mode of operation) does not work right
> - if I connect odbedit for the first time, all is okey, if I connect the second
> time, mserver crashes - because after the first connection closed,
> rpc_deregister_functions() was called, rpc_list is deleted and causes a crash
> later on. Because everybody uses the default "mserver -m" mode, I am not sure
> how important it is to fix this.
> K.O.

"mserver -s" is there for historical reasons and for debugging. I started originally 
with a single process server back in the 90's, and only afterwards developed the multi 
process scheme. The single process server now only works for one connection and then 
crashes, as you described. But it can be used for debugging any server connection, 
since you don't have to follow the creation of a subprocess with your debugger, and 
therefore it's much easier. But after the first connection has been closed, you have 
to restart that single server process. Maybe one could add some warning about that, or 
even fix it, but it's nowhere used in production mode.
ELOG V3.1.4-2e1708b5