From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8898 invoked from network); 30 Oct 1998 23:35:29 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 30 Oct 1998 23:35:29 -0000 Received: from crdems.GE.COM (root@crdems.GE.COM [192.35.44.5]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id SAA15321 for ; Fri, 30 Oct 1998 18:23:46 -0500 Received: from crd.ge.com (hobbes.crd.ge.com [3.1.221.9]) by crdems.GE.COM (8.9.0/8.9.0) with ESMTP id SAA06389 for ; Fri, 30 Oct 1998 18:23:45 -0500 Sender: morrill@crdems.GE.COM Message-ID: <363A4A7D.FD7F6FE4@crd.ge.com> Date: Fri, 30 Oct 1998 18:23:41 -0500 From: Dan Morrill X-Mailer: Mozilla 4.03 [en] (X11; U; SunOS 5.5.1 sun4m) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Safe SIGs to use in userspace apps Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I would like to use OpenLDAP on Linux/Alpha. OpenLDAP requires two *user* signals in order to function; the Linux version would like to use SIGUSR1 and SIGUSR2, but as OpenLDAP is threaded via glibc pthreads, SIGUSR1 and SIGUSR2 are unavailable (as they are used by pthreads.) When built on Linux, OpenLDAP chooses two other SIGs to use instead of SIGUSR1 and SIGUSR2, and has no problem. Of course, it only checks for Linux, and not Linux/Alpha, and since Linux/Alpha has different signal numbers, it dies. Linux/Alpha's signum.h is not as well documented as, say, its counterpart on Solaris, so I have no idea what most of the signals are for. I'm assuming their use is the same as Digital Unix's, but I don't have a DU box to look at. I currently have OpenLDAP hacked to use two random signals that I chose by comparing Linux/Intel with Linux/Alpha and finding two signals that were in Linux/Alpha that were not in Linux/Intel, under the assumption that if they aren't present in Linux/Intel, they probably aren't being used by the system. It *seems* to work, meaning it hasn't crashed yet, but I'm not confident that this is a good solution. So, my question is, what are two signals (besides SIGUSR1 and SIGUSR2) on Linux/Alpha that are safe for use by user-space apps, and can anyone recommend a good source for learning what the various signals are used for, or at least which ones are generally unused? Dan Morrill Computer Scientist GE Corporate R&D ****************** My views are my own, and may not reflect those of my employer.