EBUSY is a better reply for refusing to unload pf(4) or pfsync(4).

Submitted by:	pluknet
This commit is contained in:
glebius 2012-09-22 19:03:11 +00:00
parent b44d697491
commit 82dab36482
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();