fpc/packages/fcl-process/tests/doexit.pp
2023-12-17 12:28:17 +01:00

16 lines
179 B
ObjectPascal

program doexit;
uses sysutils;
var
WT,EC : Integer;
begin
EC:=StrToIntDef(ParamStr(1),0);
WT:=StrToIntDef(ParamStr(2),0);
if WT>0 then
Sleep(WT);
Halt(EC);
end.