empserver/include
Markus Armbruster 2e4793408c lwp: Rewrite signal wait code for portability and safety
LWP's use of sigset_t is problematic.

To iterate over a sigset_t, it uses NSIG, which is not portable: BSD
and System V provide it, but it's not POSIX.

To record signals caught, it updates a sigset_t variable from a signal
handler.  The variable isn't volatile, because we'd have to cast away
volatile for sigaddset().

Replace sigset_t by an array of signal numbers terminated with 0.

Since lwpInitSigWait() needs to store the signal set for
lwpCatchAwaitedSig() anyway, there is no need to pass it to
lwpSigWait().  Drop its parameter.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2021-01-23 07:08:03 +01:00
..
actofgod.h Update copyright notice 2021-01-05 10:41:28 +01:00
chance.h Update copyright notice 2021-01-05 10:41:28 +01:00
com.h Update copyright notice 2021-01-05 10:41:28 +01:00
combat.h Update copyright notice 2021-01-05 10:41:28 +01:00
commands.h Update copyright notice 2021-01-05 10:41:28 +01:00
commodity.h Update copyright notice 2021-01-05 10:41:28 +01:00
damage.h Update copyright notice 2021-01-05 10:41:28 +01:00
econfig-spec.h econfig: Fix documentation of key assault_penalty 2021-01-19 08:56:38 +01:00
empio.h Update copyright notice 2021-01-05 10:41:28 +01:00
empobj.h Update copyright notice 2021-01-05 10:41:28 +01:00
empthread.h Update copyright notice 2021-01-05 10:41:28 +01:00
file.h Update copyright notice 2021-01-05 10:41:28 +01:00
fnameat.h Update copyright notice 2021-01-05 10:41:28 +01:00
game.h Update copyright notice 2021-01-05 10:41:28 +01:00
ioqueue.h Update copyright notice 2021-01-05 10:41:28 +01:00
item.h config: Slightly neater configuration table size macros 2021-01-23 07:07:58 +01:00
journal.h Update copyright notice 2021-01-05 10:41:28 +01:00
land.h config: Enlarge configuration tables that have variable size 2021-01-23 07:08:03 +01:00
loan.h Update copyright notice 2021-01-05 10:41:28 +01:00
lost.h Update copyright notice 2021-01-05 10:41:28 +01:00
lwp.h lwp: Rewrite signal wait code for portability and safety 2021-01-23 07:08:03 +01:00
map.h Update copyright notice 2021-01-05 10:41:28 +01:00
match.h Update copyright notice 2021-01-05 10:41:28 +01:00
misc.h New macro ARRAY_SIZE() 2021-01-19 08:56:38 +01:00
mission.h Update copyright notice 2021-01-05 10:41:28 +01:00
nat.h Update copyright notice 2021-01-05 10:41:28 +01:00
news.h Update copyright notice 2021-01-05 10:41:28 +01:00
nsc.h Update copyright notice 2021-01-05 10:41:28 +01:00
nuke.h config: Enlarge configuration tables that have variable size 2021-01-23 07:08:03 +01:00
optlist.h Update copyright notice 2021-01-05 10:41:28 +01:00
path.h Update copyright notice 2021-01-05 10:41:28 +01:00
plague.h Update copyright notice 2021-01-05 10:41:28 +01:00
plane.h config: Enlarge configuration tables that have variable size 2021-01-23 07:08:03 +01:00
player.h Update copyright notice 2021-01-05 10:41:28 +01:00
power.h Update copyright notice 2021-01-05 10:41:28 +01:00
product.h config: Enlarge configuration tables that have variable size 2021-01-23 07:08:03 +01:00
proto.h Update copyright notice 2021-01-05 10:41:28 +01:00
prototypes.h Update copyright notice 2021-01-05 10:41:28 +01:00
queue.h Update copyright notice 2021-01-05 10:41:28 +01:00
retreat.h Update copyright notice 2021-01-05 10:41:28 +01:00
sect.h config: Enlarge configuration tables that have variable size 2021-01-23 07:08:03 +01:00
server.h Update copyright notice 2021-01-05 10:41:28 +01:00
service.h Update copyright notice 2021-01-05 10:41:28 +01:00
ship.h config: Enlarge configuration tables that have variable size 2021-01-23 07:08:03 +01:00
tel.h Update copyright notice 2021-01-05 10:41:28 +01:00
testing.h Update copyright notice 2021-01-05 10:41:28 +01:00
trade.h Update copyright notice 2021-01-05 10:41:28 +01:00
types.h Update copyright notice 2021-01-05 10:41:28 +01:00
unit.h Update copyright notice 2021-01-05 10:41:28 +01:00
update.h Avoid SCT_TYPE_MAX, use ARRAY_SIZE() instead 2021-01-19 08:56:38 +01:00
version.h Update copyright notice 2021-01-05 10:41:28 +01:00
xdump.h Update copyright notice 2021-01-05 10:41:28 +01:00
xy.h Update copyright notice 2021-01-05 10:41:28 +01:00