>I hope your real code dosn't busy-wait like the fragment above.
i recv() from socket in while. and test on ctrl+c:
while(recv(.....))
{
.........
ctrl+c();
.........
}
>Well, which AmigaOS and which compiler do you use ?
3.9bb2, sasc/vbcc.
>What does your CheckSignal function do ?
it's not my, it's from dos.library():
NAME
CheckSignal -- Checks for break signals (V36)
FUNCTION
This function checks to see if any signals specified in the mask have been set and if so, returns them. Otherwise it returns FALSE.All signals specified in mask will be cleared.
i don't now, who preferred Wait() or CheckSignal().. btw, thnx for answer, it was 2 open shells

so, all is ok.
btw, maybe you know what i can redirect all 'cli' output to
file or memory ? i mean:
char buf[500];
SystemTags("newcli",???); // cli start, but output redirect
// to buf[];
?