FreeBSD Bugzilla – Attachment 254890 Details for
Bug 282478
[ipfilter] Silence a lock upon service stop
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
WIP: As described in comment #0
bz_282478.patch (text/plain), 807 bytes, created by
Jose Luis Duran
on 2024-11-03 02:12:40 UTC
(
hide
)
Description:
WIP: As described in comment #0
Filename:
MIME Type:
Creator:
Jose Luis Duran
Created:
2024-11-03 02:12:40 UTC
Size:
807 bytes
patch
obsolete
>diff --git sys/netpfil/ipfilter/netinet/fil.c sys/netpfil/ipfilter/netinet/fil.c >index 926c5176c15b..223c045c3fe5 100644 >--- sys/netpfil/ipfilter/netinet/fil.c >+++ sys/netpfil/ipfilter/netinet/fil.c >@@ -7931,12 +7931,17 @@ ipf_ipf_ioctl(ipf_main_softc_t *softc, caddr_t data, ioctlcmd_t cmd, int mode, > error = ipfattach(softc); > if (error == 0) > softc->ipf_running = 1; >- else >+ else { >+ RWLOCK_EXIT(&softc->ipf_global); > (void) ipfdetach(softc); >+ WRITE_ENTER(&softc->ipf_global); >+ } > } else { >- if (softc->ipf_running == 1) >+ if (softc->ipf_running == 1) { >+ RWLOCK_EXIT(&softc->ipf_global); > error = ipfdetach(softc); >- else >+ WRITE_ENTER(&softc->ipf_global); >+ } else > error = 0; > if (error == 0) > softc->ipf_running = -1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 282478
:
254881
| 254890 |
254917
|
254918