Make sure "mdmon" doesn't get called "@dmon".
authorNeilBrown <neilb@suse.de>
Mon, 2 Sep 2013 01:02:09 +0000 (11:02 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 2 Sep 2013 01:02:09 +0000 (11:02 +1000)
commit2f1bcf43d93a991845b2ebee76850bd4dc5bc7fc
treeea0e94fb1db7aecf8c43e2f1ef45bcb10998933d
parent2cdd5ce0e703c46c5cead329d94ccc67c69fd4d0
Make sure "mdmon" doesn't get called "@dmon".

The Anaconda installer (via its "loader" program) will try to kill
many processes at shutdown, but not "mdmon".

However when mdadm runs mdmon in the Anaconda environment, mdmon
sets argv[0][0] to '@' resulting in "@dmon" which confuses
"loader".

So change mdadm to set argv[0] to a path so that mdmon becomes e.g.
  "@usr/sbin/mdmon"
which "loader" will recognise as being "mdmon".

Reported-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
util.c