General discussion

  • Creator
    Topic
  • #2075336

    Preventing the use of the Close Button i

    Locked

    by robweir ·

    This is a similar question to another one posted here, but I was wondering if anyone had a suggestion for preventing the use of the x button in a Windows 98 application. We have several hundred users running a telnet application to connect to a Unix server. Most of them click the x button in the title bar to exit, leading to hung resources in the system. Anyone know of a quick registry setting or some other type of solution?? Thanks.

All Comments

  • Author
    Replies
    • #3789998

      Preventing the use of the Close Button i

      by trmcdougle ·

      In reply to Preventing the use of the Close Button i

      I do not think that is practicable as there are too many ways to close a windows program (and ways to kill windows, which would have the same effect).

      You might try a different telnet program (we use TeraTerm Pro which is free), but I do not expect that the problem is at the client end. You can even get the source code of this so could attempt to make a custom client (but check the usage terms first). The homepage is:-
      http://hp.vector.co.jp/authors/VA002416/teraterm.html

      However what Ithink you should try to get the host side fixed to deal with a lost connection more gracefully. It should be technically possible, after all our VMS system manages it when our telnet sessions are closed that way!

    • #3775178

      Preventing the use of the Close Button i

      by jpereira ·

      In reply to Preventing the use of the Close Button i

      The problem is not at the client end. When your click the close button on the terminal, it sends a hang up signal to the shell that’s running on the terminal. If I do the same thing using telnet on my PC, the shell at the other end disappears as do any child processes (unless they have been “nohupped”).

      You don’t say what resources are left hung. If it is an application, I suspect that it is catching the hang up signal and then ignoring it. If it’s background processes, they are probablybeing run nohupped, which I believe some shells do by default.

    • #3772879

      Preventing the use of the Close Button i

      by disillusionedmember ·

      In reply to Preventing the use of the Close Button i

      Educate users on how to gracefully terminate the UNIX/Telnet session without using the close box. The close box should not be used until the session terminates. Try “Blast” or “VersaTerm” telnet programs.

    • #3772527

      Preventing the use of the Close Button i

      by mjohnson ·

      In reply to Preventing the use of the Close Button i

      Note to other responders:
      I know both Tandem and IBM OS/400 do NOT like being disconnected from a Telnet session ungracfully. It creates an “orphan” process on the server. The server does not know the session was closed on the client side. This is a design flaw on the client side. The X box just exits the program. It does not close all of its processes first.

      As the others have suggested, try another Telnet emulator. I’m afraid I cannot give you a suggestion. Even IBM Client Accessmakes orphans. The giggalo!! LOL

    • #3780866

      Preventing the use of the Close Button i

      by eyek ·

      In reply to Preventing the use of the Close Button i

      Try to use either Exceed or PCXware softwares on connecting into a UNIX workstation. This will prevent your users accidentally disconnect their sessions. Our Engineers are using this utility without any problem and they love it. I recommend you
      to check it out.

    • #3744537

      Preventing the use of the Close Button i

      by kevin.reed ·

      In reply to Preventing the use of the Close Button i

      If it is possible you find a registry hack at http://www.regedit.com
      This page also includes links to variuos other sites that have registry hacks on them

    • #3749651

      Preventing the use of the Close Button i

      by ab3_tek ·

      In reply to Preventing the use of the Close Button i

      I too highly recommend Exceed as your software to connect to a Unix box. The software has build in functionality that allows connections and disconnections to happen the ‘right’ way and minimize orphan processes.

    • #3764681

      Preventing the use of the Close Button i

      by robweir ·

      In reply to Preventing the use of the Close Button i

      This question was auto closed due to inactivity

Viewing 7 reply threads