Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!decwrl!decvax!mandrill!hal!oxtrap!rsj From: rsj@oxtrap.UUCP (Rick Jaffe) Newsgroups: comp.unix.questions Subject: longjmp(3) Message-ID: <3400@oxtrap.UUCP> Date: 17 Apr 88 22:28:48 GMT Reply-To: rsj@oxtrap.UUCP (Rick Jaffe) Organization: Oxford, Ann Arbor Lines: 7 when it receives a signal (SIGUSR1) telling it not to bother: the answer isn't needed any more. The program assures that locks and global variables won't cause any trouble, and executes a longjmp(3) from the signal handler back up to the main procedure. Is this "safe"? Is there a better way, short of setting a global flag, and then either returning from the several hundred procedure calls or executing a longjmp() from inside the recursive procedure?