]> xenbits.xensource.com Git - xen.git/commitdiff
tools/libxc: use XEN_RUN_DIR for SUSPEND_LOCK_FILE
authorOlaf Hering <olaf@aepfle.de>
Mon, 22 Sep 2014 13:00:06 +0000 (15:00 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 23 Sep 2014 09:15:43 +0000 (10:15 +0100)
Remove hardcoded /var/run/xen directory path, use XEN_RUN_DIR instead.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_suspend.c

index 200d381d00415b697eea5ed39f28ac4d0db8d137..e22f4ac10316716bfaaf9cdf08314ca822cdd980 100644 (file)
@@ -20,7 +20,7 @@
 #include "xc_private.h"
 #include "xenguest.h"
 
-#define SUSPEND_LOCK_FILE "/var/run/xen/suspend-evtchn-%d.lock"
+#define SUSPEND_LOCK_FILE    XEN_RUN_DIR "/suspend-evtchn-%d.lock"
 
 /*
  * locking