[DRBD-cvs] r1652 - trunk/drbd
svn at svn.drbd.org
svn at svn.drbd.org
Tue Nov 23 23:47:53 CET 2004
Author: phil
Date: 2004-11-23 23:47:50 +0100 (Tue, 23 Nov 2004)
New Revision: 1652
Modified:
trunk/drbd/drbd_receiver.c
Log:
By now it is clear that we can get the return value of
the user space helper :) Cool!
Modified: trunk/drbd/drbd_receiver.c
===================================================================
--- trunk/drbd/drbd_receiver.c 2004-11-23 22:29:51 UTC (rev 1651)
+++ trunk/drbd/drbd_receiver.c 2004-11-23 22:47:50 UTC (rev 1652)
@@ -1635,9 +1635,9 @@
NULL };
snprintf(mb,12,"minor-%d",(int)(mdev-drbd_conf));
- ret = call_usermodehelper("/sbin/drbdadm",argv,envp,0);
+ ret = call_usermodehelper("/sbin/drbdadm",argv,envp,1);
if(ret) {
- ERR("call_usermodhelper failed with %d",ret);
+ ERR("call_usermodhelper failed with %d\n",(ret>>8) & 0xff);
}
}
More information about the drbd-cvs
mailing list