Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!rufus!drake.almaden.ibm.com!drake From: drake@drake.almaden.ibm.com Newsgroups: comp.unix.aix Subject: Re: tcsh for RISC6000, AIX 3.1? Message-ID: <229@rufus.UUCP> Date: 23 Sep 90 07:01:01 GMT References: <64825@bu.edu.bu.edu> Sender: news@rufus.UUCP Organization: IBM Almaden Research Center Lines: 63 In article <64825@bu.edu.bu.edu> jdh@bu-pub.bu.edu (Jason Heirtzler) writes: >While on the subject of signals, there seem to be a few signals defined >that I don't recognize. Can someone provide more info? > > #define SIGDANGER 33 /* system crash imminent; free up some page space */ This is issued when paging space on disk is very full. If paging space gets incredibly full, AIX starts sending SIGKILL to processes that are using lots of paging space in order to get some page slots on disk freed up. At a threshold before that point it will send SIGDANGER to applications that want it, to tell them "free up some space for me or I'll kill you". > #define SIGMIGRATE 35 /* migrate process (see TCF)*/ This signal can be sent to a process in a TCF environment (AIX/370 or AIX PS/2 1.2) to ask it to move to another CPU in the complex. > #define SIGGRANT 60 /* HFT monitor mode granted */ > #define SIGRETRACT 61 /* HFT monitor mode should be relinguished */ > #define SIGSOUND 62 /* HFT sound control has completed */ These 3 are used by applications that are coded to use the facilities of the AIX "HFT" interface. HFT (High Function Terminal) is the set of device drivers used to manage the primary system console. The short version of how it works: You can have multiple virtual terminals available on the same physical terminal. A hot-key sequence allows you to determine which virtual terminal is displayed at the moment. Each virtual terminal can run in one of two modes: character mode, in which an x by y array of characters are displayed on the screen, or "monitor mode". In character mode an HFT is very similar to any other terminal, such as a VT-100 or similar. In "monitor mode" applications can get access to the underlying display hardware and keyboard scan codes and can implement sophsticated graphics interfaces. The AIX X server, for example, runs as a monitor mode application in a monitor mode virtual terminal. NEXTStep could run in another, for example. OK, on to the signals. SIGGRANT and SIGRETRACT deal with monitor mode and hot-keying. Suppose I have two virtual terminals, A and B. A is displayed on the real hardware. Both run in character mode. The application running in terminal B wants to enter monitor mode; it asks for it. But the request cannot be immediately granted; terminal A controls the display, and since monitor mode apps can get to the real display hardware we have to wait for the user to hotkey terminal B to the front before monitor mode can be granted. The application will get SIGGRANT when this happens. Now B is the current terminal, in monitor mode, and the user hotkeys to A (in character mode). We have to coordinate the switch with B's application, since it's scribbled all over the hardware in ways AIX doesn't know. So AIX sends application B the SIGRETRACT signal, telling it, "the user has hotkeyed away from you. Give up the terminal." Application B has to put its house in order and then tell AIX to go ahead and perform the hotkey. SIGSOUND is used for telling programs when sound stops playing. If an application asks for a 2 second middle C to be played, say, it will get SIGSOUND when the sound stops. More than you wanted to know about them, eh? :-) Sam Drake / IBM Almaden Research Center Internet: drake@ibm.com BITNET: DRAKE at ALMADEN Usenet: ...!uunet!ibmarc!drake Phone: (408) 927-1861