Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.wizards Subject: Re: Big Fun with Sys V signal handling Message-ID: <8264@brl-smoke.ARPA> Date: 29 Jul 88 05:36:22 GMT References: <482@paisano.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <482@paisano.UUCP> demasi@paisano.UUCP (Michael C. De Masi) writes: >This is, I guess, more of a general question than I usually >post. Can anybody out there point me towards a generalized >text on strategies to process signals in a full screen run >time unix environment? Several applications around here >are having great troubles with the concepts involved here, >and it's hard to give them hard and fast rules that have >any meaning to their plight. Rule #1: In your signal handler, just set a flag and resume. Have the main program loop test the flag at appropriate points. Don't try to do anything useful in the signal handler itself. Rule #2: Follow rule #1.