diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-12-29 11:12:10 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-12-29 17:41:39 +0100 |
commit | 6eb68a228b387334c259567589838257e2bbdaf9 (patch) | |
tree | 0c1e170d555d2643d10da6056fe79c2167fdfbad /libdiskfs | |
parent | 2c1299afbed9bc78e2d92565c334317622a68f01 (diff) | |
download | hurd-6eb68a228b387334c259567589838257e2bbdaf9.tar.gz hurd-6eb68a228b387334c259567589838257e2bbdaf9.tar.bz2 hurd-6eb68a228b387334c259567589838257e2bbdaf9.zip |
Replace deprecated sigmask with sigset_t calls
Message-ID: <20231229161211.312389-2-flaviocruz@gmail.com>
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/disk-pager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/disk-pager.c b/libdiskfs/disk-pager.c index 1a5d8bf2..7af0e3ba 100644 --- a/libdiskfs/disk-pager.c +++ b/libdiskfs/disk-pager.c @@ -29,7 +29,6 @@ struct pager_requests *diskfs_disk_pager_requests; static void fault_handler (int sig, long int sigcode, struct sigcontext *scp); static struct hurd_signal_preemptor preemptor = { - signals: sigmask (SIGSEGV) | sigmask (SIGBUS), preemptor: NULL, handler: (sighandler_t) &fault_handler, }; @@ -73,6 +72,9 @@ diskfs_start_disk_pager (struct user_pager_info *upi, /* Set up the signal preemptor to catch faults on the disk image. */ preemptor.first = (vm_address_t) *image; preemptor.last = ((vm_address_t) *image + size); + sigemptyset (&preemptor.signals); + sigaddset (&preemptor.signals, SIGSEGV); + sigaddset (&preemptor.signals, SIGBUS); hurd_preempt_signals (&preemptor); /* We have the mapping; we no longer need the send right. */ |