Date: Tue, 11 Jan 2000 18:54:47 -0500 From: Laurence Berland <stuyman@confusion.net> To: freebsd-questions@FreeBSD.ORG Subject: Re: Giving a sighandler more information Message-ID: <387BC2C7.44B12247@confusion.net> References: <200001111215.NAA22385@dorifer.heim3.tu-clausthal.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Oliver Fromme wrote: > > Laurence Berland <stuyman@confusion.net> wrote in list.freebsd-questions: > > Oliver Fromme wrote: > >> > >> I'm afraid there is no other way than using global variables. > >> Be sure to declare them as ``volatile sig_atomic_t''. > >> > > What does this do as compared to declaring them normally? > > It makes them work, as opposed to not work. :-) > > Seriously. You _must_ declare global variables which are > accessed from a signal handler as ``volatile sig_atomic_t''. > Everything else is _not_ guaranteed to work (and if it works, > then it's just pure luck). > > Regards > Oliver > Does this have something to do with the signal being caught while we're in the signal routine? Am I on the right track? -- Laurence Berland, Stuyvesant HS Debate <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Windows 98: n. useless extension to a minor patch release for 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1 bit of competition. http://stuy.debate.net icq #7434346 aol imer E1101 The above email Copyright (C) 1999 Laurence Berland All rights reserved To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?387BC2C7.44B12247>