Add some consistency checks to the signal-related code.

MFC:	along with rev. 1.202
This commit is contained in:
Yaroslav Tykhiy 2005-02-16 11:35:51 +00:00
parent 91ae77792e
commit f9036ce6dc
1 changed files with 6 additions and 0 deletions

View File

@ -2765,10 +2765,16 @@ flagxfer(int flag)
{
if (flag) {
if (transflag)
syslog(LOG_ERR, "Internal: flagxfer(1): "
"transfer already under way");
transflag = 1;
maskurg(0);
recvurg = 0;
} else {
if (!transflag)
syslog(LOG_ERR, "Internal: flagxfer(0): "
"no active transfer");
maskurg(1);
transflag = 0;
}