Add some consistency checks to the signal-related code.
MFC: along with rev. 1.202
This commit is contained in:
parent
91ae77792e
commit
f9036ce6dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141967
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user