Changeset 1163 for trunk/packages


Ignore:
Timestamp:
Oct 22, 2008, 12:48:44 AM (16 years ago)
Author:
broder
Message:

There's a race condition for if the VM gets powered off between the
listvms and the actual request. Solve the problem correctly by using a
non-conflicting error code to indicate an invalid command

Location:
trunk/packages/sipb-xen-remote-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-remote-server/debian/changelog

    r1161 r1163  
     1sipb-xen-remote-server (0.10.2) unstable; urgency=low
     2
     3  * There's a race condition for if the VM gets powered off between the
     4    listvms and the actual request. Solve the problem correctly by using a
     5    non-conflicting error code to indicate an invalid command
     6
     7 -- Evan Broder <broder@mit.edu>  Wed, 22 Oct 2008 00:46:38 -0400
     8
    19sipb-xen-remote-server (0.10.1) unstable; urgency=low
    210
  • trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remote-control

    r1159 r1163  
    3131    (out, err) = p.communicate()
    3232    if p.returncode == 1:
     33        print >>sys.stderr, "machine '%s' is not on" % machine_name
     34        return 1
     35    elif p.returncode == 34:
    3336        print >>sys.stderr, "ERROR: invalid command"
    34         return 1
     37        return 34
    3538    sys.stderr.write(err)
    3639    sys.stdout.write(out)
Note: See TracChangeset for help on using the changeset viewer.