in reply to Diagnositc output on background processes
Some thoughts.
You should know that signal handlers are not fully safe to do much in especially printing.
You probably want to set a flag in your handler and return. Then check the flag in your main code and write out relevant info and clear the flag.
As for reconnecting output with your terminal, I think you should look along the lines of an output file then in your session tail -f the file or look into syslog which can recieve messages from programs and then send them to users (you) when they are logged in. Messages collected while you are not logged in are tossed though unless you also have syslog send those messages to some file, which brings us back to the first method.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Diagnositc output on background processes
by tye (Sage) on Aug 25, 2001 at 10:26 UTC |