MDM outputs 3944

MDM outputs 3944

Postby Zavulon on Fri Feb 28, 2014 3:42 pm

Hello,

if I do 'sudo mdm --version' or 'sudo mdm --help', I only get '3944' as a result.

What could be wrong? Have LMDE UP8.
Zavulon
Level 1
Level 1
 
Posts: 29
Joined: Fri Jul 22, 2011 1:38 pm

Linux Mint is funded by ads and donations.
 

Re: MDM outputs 3944

Postby karlchen on Fri Feb 28, 2014 9:16 pm

Hello, Zavulon.

Actually it outputs a PID (process ID). Confirmed. Looks like a bug introduced in MDM 1.4.8.
Cf. this thread: MDM does no longer display its version
Did not receive too much attention.
You are the first one to confirm that this misbehaviour exists.

Cheers,
Karl
--
<Hypothesis on>

When mdm gets launched it tries to make sure that no other mdm instance has already been launched as a daemon (service).
This is why mdm checks for other loaded mdm processes.
In case another loaded mdm daemon is found mdm displays the process ID of the first loaded mdm daemon and exits.

Basically this approach is correct and fine and by design.
But:
In case mdm is launched with the commandline options --version or --help the user is not trying to create a second mdm daemon instance. He just wants to know the version or the commandline usage. So no need to check for already loaded mdm daemons.

I assume that in the latest mdm source codes some pairs of brackets { } may have been lost / added / moved to an incorrect position with the side effect that
+ mdm checks for loaded mdm instances and - if it finds any - complains and exits
even in cases
+ where it should only display its own version and exit or
+ where it should only display the commandline usage and exit

Quite seems as if it may be worth comparing the mdm sources of mdm 1.0.8 and mdm 1.4.8 and have a close look at the part where the commandline arguments are parsed ...

</Hypothesis off>
Last edited by karlchen on Sun Mar 02, 2014 9:45 am, edited 1 time in total.
Reason: corrected the mispelt name. It is Zavulon, not Zevulpn.
User avatar
karlchen
Level 11
Level 11
 
Posts: 3942
Joined: Sat Dec 31, 2011 7:21 am

Re: MDM outputs 3944

Postby Zavulon on Sun Mar 02, 2014 6:51 am

Thanks for the info!
Zavulon
Level 1
Level 1
 
Posts: 29
Joined: Fri Jul 22, 2011 1:38 pm


Return to Others

Who is online

Users browsing this forum: No registered users and 0 guests