~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/consoleservice/__init__.py

  • Committer: dcoles
  • Date: 2008-08-21 04:56:20 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1038
ConsoleService: Fix small regression. Ensure that the console is restarted if 
the response from the console process could not be understood.

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
            decoded_response = cjson.decode(response)
123
123
        except cjson.DecodeError:
124
124
            # Could not decode the reply from the python-console server
125
 
            decoded_response = {"restart":
 
125
            decoded_response = {"terminate":
126
126
                "Communication to console process lost"}
127
127
        if "terminate" in decoded_response:
128
128
            response = restart_console(uid, jail_path, working_dir,