search for: suspend_lock_fil

Displaying 1 result from an estimated 1 matches for "suspend_lock_fil".

Did you mean: suspend_lock_file
2010 Nov 25
4
[PATCH]improve suspend_evtchn lock processing
...hunyan Liu diff -r 3c4c3d48a835 tools/libxc/xc_suspend.c --- a/tools/libxc/xc_suspend.c Thu Aug 26 11:16:56 2010 +0100 +++ b/tools/libxc/xc_suspend.c Thu Nov 25 18:44:35 2010 +0800 @@ -16,8 +16,40 @@ #include "xc_private.h" #include "xenguest.h" +#include #define SUSPEND_LOCK_FILE "/var/lib/xen/suspend_evtchn" +/* cleanup obsolete suspend lock file which is unlinked for any reason, +so that current process can get lock */ +static void clean_obsolete_lock(int domid) +{ + int fd, pid, n; + char buf[128]; + char suspend_file[256]; + + snprintf(suspend_fi...