Commit ee109d51 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

telnet: Don't use pause() on Win32.

My man says: "Pause is made obsolete by sigsuspend(2)." however sigsuspend just dies on win32.
parent 8510313d
......@@ -280,7 +280,11 @@ static void Run( intf_thread_t *p_intf )
if (net_errno != EINTR)
{
msg_Err (p_intf, "network poll error");
pause (); /* We are screwed! */
#ifndef WIN32
pause (); /* We are screwed! */
#else
abort (); /* We are even more screwed! (no pause() in win32) */
#endif
break;
}
case 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment