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

Submitted by:	pluknet
This commit is contained in:
Gleb Smirnoff 2012-09-22 19:03:11 +00:00
parent e9e4cb7345
commit 51e02a31d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240836
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();