~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-27 06:04:53 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1043
Console: Minor fixes. ConsoleService will now also restart the python-console 
if the connection is reset by the server.
Removed some unused code in python-console and slighly shuffled program flow so 
that the terminate check is done after checking the cmdQ (rather than just 
before)

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
            # Timeout: Restart the session
134
134
            response = restart_console(uid, jail_path, working_dir,
135
135
                "The IVLE console has timed out due to inactivity")
 
136
        elif enumber == errno.ECONNRESET:
 
137
            # Communication issue: Restart the session
 
138
            response = restart_console(uid, jail_path, working_dir,
 
139
                "Connection with the console has been reset")
136
140
        else:
137
141
            # Some other error - probably serious
138
142
            raise socket.error, (enumber, estring)