MDM outputs 3944

Archived topics about LMDE 1
Forum rules
Level 1
Level 1
Posts: 27
Joined: Fri Jul 22, 2011 1:38 pm

MDM outputs 3944

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


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

What could be wrong? Have LMDE UP8.

User avatar
Level 16
Level 16
Posts: 6575
Joined: Sat Dec 31, 2011 7:21 am

Re: MDM outputs 3944

Postby karlchen » 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.

<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.
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.

Level 1
Level 1
Posts: 27
Joined: Fri Jul 22, 2011 1:38 pm

Re: MDM outputs 3944

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

Thanks for the info!

Return to “Archive”

Who is online

Users browsing this forum: No registered users and 0 guests