mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 21:40:21 +02:00
* Added shutdown() call before close
This commit is contained in:
parent
b4f654100d
commit
65b9717fb3
@ -3,7 +3,7 @@ program pfinger;
|
||||
uses sockets,errors;
|
||||
|
||||
Var Addr : TInetSockAddr;
|
||||
S : Longint;
|
||||
S : Longint;
|
||||
Sin,Sout : Text;
|
||||
Line : string;
|
||||
|
||||
@ -29,6 +29,7 @@ begin
|
||||
readln (Sin,line);
|
||||
writeln (line);
|
||||
end;
|
||||
Shutdown(s,2);
|
||||
close (sin);
|
||||
close (sout);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user