//File: logout.java //CS 471 - Operating Systems Project //Dennis Pereira, Ely Soto, John Cavalieri //The logout module simply sets a flag that sets all shell's to //exit upon completion of their currently executing children. public class logout extends VMachine { public logout() { } public void run() { try{ sysapi.Write(OUT,"Goodbye!\n"); //Forces all of user's shell's to exit sysapi.findUser(owner).isClosing = true; } catch(Exception ioex) { System.out.println("logout threw Exception: " + ioex); } sysapi.Exit(vmh,owner); } }