EBUSY is a better reply for refusing to unload pf(4) or pfsync(4).
Submitted by: pluknet
This commit is contained in:
parent
e9e4cb7345
commit
51e02a31d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240836
@ -2371,7 +2371,7 @@ pfsync_modevent(module_t mod, int type, void *data)
|
||||
/*
|
||||
* Module should not be unloaded due to race conditions.
|
||||
*/
|
||||
error = EPERM;
|
||||
error = EBUSY;
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
pfsync_uninit();
|
||||
|
@ -3756,7 +3756,7 @@ pf_modevent(module_t mod, int type, void *data)
|
||||
/*
|
||||
* Module should not be unloaded due to race conditions.
|
||||
*/
|
||||
error = EPERM;
|
||||
error = EBUSY;
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
error = pf_unload();
|
||||
|
Loading…
Reference in New Issue
Block a user