(telnet_spin): if Scheduler() returns failure (-1) propagate to higher level
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12921 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -62,13 +62,14 @@ net_encrypt(void)
|
|||||||
int
|
int
|
||||||
telnet_spin(void)
|
telnet_spin(void)
|
||||||
{
|
{
|
||||||
extern int scheduler_lockout_tty;
|
int ret = 0;
|
||||||
|
|
||||||
scheduler_lockout_tty = 1;
|
scheduler_lockout_tty = 1;
|
||||||
Scheduler(0);
|
if (Scheduler(0) == -1)
|
||||||
|
ret = 1;
|
||||||
scheduler_lockout_tty = 0;
|
scheduler_lockout_tty = 0;
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user