EBUSY is a better reply for refusing to unload pf(4) or pfsync(4).
Submitted by: pluknet
This commit is contained in:
parent
b44d697491
commit
82dab36482
@ -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…
x
Reference in New Issue
Block a user