diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-09-29 20:09:19 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-09-29 20:09:19 +0000 |
commit | 535b6920913746869d006e8c2a2dee07d9e87935 (patch) | |
tree | 1ef90406efb3101712de7c484d3256419b1a7381 /usr.bin/doscmd/signal.c | |
parent | 1b5464ef9dcb03d6bccbdc5acd734801ea1679af (diff) | |
download | src-535b6920913746869d006e8c2a2dee07d9e87935.tar.gz src-535b6920913746869d006e8c2a2dee07d9e87935.zip |
Unbreak doscmd after the sigset_t change:
doscmd heavily depends on struct sigcontext which luckily is mostly passed
between functions as usion regcontext_t. By redefining union regcontext_t in
terms of mcontext_t almost all bases are covered.
It also seems to me that doscmd was in a transitional state. The redundant
definitions made it difficult to get a clear overview and could easily cause
oversight. To make sure my changes were ok, I went as far as to complete the
transition. It was not exactly necessary, but I expect to have to come back
here some more ("whistle" if I'm wrong :-).
Notes
Notes:
svn path=/head/; revision=51798
Diffstat (limited to 'usr.bin/doscmd/signal.c')
-rw-r--r-- | usr.bin/doscmd/signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doscmd/signal.c b/usr.bin/doscmd/signal.c index 704159760575..297bf37e4114 100644 --- a/usr.bin/doscmd/signal.c +++ b/usr.bin/doscmd/signal.c @@ -66,9 +66,9 @@ sanity_check(struct sigframe *sf) static void generichandler(struct sigframe sf) { - if (sf.sf_siginfo.si_sc.sc_efl & PSL_VM) { + if (sf.sf_uc.uc_mcontext.mc_tf.tf_eflags & PSL_VM) { saved_sigframe = &sf; - saved_regcontext = (regcontext_t *)&(sf.sf_siginfo.si_sc); + saved_regcontext = (regcontext_t *)&(sf.sf_uc.uc_mcontext); saved_valid = 1; if (handler[sf.sf_signum]) (*handler[sf.sf_signum])(&sf); |