From: Dan Morrill <morrill@crd.ge.com>
To: axp-list@redhat.com
Subject: Safe SIGs to use in userspace apps
Date: Fri, 30 Oct 1998 18:23:41 -0500 [thread overview]
Message-ID: <363A4A7D.FD7F6FE4@crd.ge.com> (raw)
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.
reply other threads:[~1998-10-30 23:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox