(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:
Love Hörnquist Åstrand
2003-09-25 15:45:51 +00:00
parent d841047ce6
commit b2b4d18c3e

View File

@@ -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;
} }