Hangup Parent

The -hp switch is another variation on the –h switch described above. When specified, A-Shell performs the default handling of hangup conditions (as if no -h switch was specified) but then forwards the hangup signal to the parent process immediately before exiting. This has been found to be useful in certain UNIX environments to force the telnet session to close properly, but should probably be avoided on the general principle that it is better to not to confuse the issue by sending signals that are normally managed by the operating system.

The –hp switch is ignored by A-Shell if it is specified on the PolyShell command line.

The "standard" technique for forcing a clean and total shutdown of a telnet session on exit from A-Shell is to launch A-Shell directly from the user’s login .profile, and follow that with an exit command. Thus when A-Shell exits, it returns to the .profile where it executes the UNIX exit.

Another technique is to use the ashgetty utility in place of the normal getty to handle the initialization and login on the terminal. Ashgetty allows you to make A-Shell take the place of the normal login shell, thus eliminating the possibility of normal operating system shell access outside of A-Shell.