Using trap command (was: Exceeded User Count)
Lerebours, Jose
Jose.Lerebours at EagleGL.com
Fri Feb 11 05:42:34 PST 2005
> [...]
> > > Some systems don't seem to send or receive the proper
> socket shutdown
> > > commands when you exit with the "x" to close the window.
> This causes
> > > the *nix box to keep the session open, and as such the
> filePro program
> > > is still running.
> >
> > I had a couple of users telnetting into SCO Unix who had in their
> > .profile "trap '' 1 2 3", a holdover from long past dumb terminal
> > days. These users could not click 'x' on the windows
> window? to close
> > it without leaving open processes and idleout would also leave open
> > processes. Commenting the trap command out solved the problem.
>
> Telling the shell to ignore SIGHUP explicitly says "I don't want to
> kill any process if the user disconnects".
>
This is revealing to me ... and possibly the answer to all those
"<defunct>" processes I've seen in a couple of places.
I normally use `trap` as well to keep user within a shell script
where a qualifier is chosen and filePro application is opened with
chosen qualifier.
Removing the `trap` command causes the script to close if user
exits filePro pressing DEL key.
Am I caught in a loose/loose situation or is there a remedy?
Regards;
Jose Lerebours
More information about the Filepro-list
mailing list