Usermode/login - Added PTY mode reset before showing prompt
authorJohn Hodge <[email protected]>
Mon, 20 May 2013 08:20:14 +0000 (16:20 +0800)
committerJohn Hodge <[email protected]>
Mon, 20 May 2013 08:20:14 +0000 (16:20 +0800)
- Works around no response when GUI crashes

Usermode/Applications/login_src/main.c

index e151ff9..4059953 100644 (file)
@@ -61,6 +61,10 @@ int main(int argc, char *argv[])
                
                // Wait for child to terminate
                _SysWaitTID(pid, &status);
+       
+               // Clear graphics mode  
+               struct ptymode  mode = {.InputMode = PTYIMODE_ECHO|PTYIMODE_CANON,.OutputMode=0};
+               _SysIOCtl(0, PTY_IOCTL_SETMODE, &mode);
        }
        
        return 0;

UCC git Repository :: git.ucc.asn.au