[fpc-devel] simpleipc under Linux
Mattias Gaertner
nc-gaertnma at netcologne.de
Sat Feb 28 14:13:35 CET 2015
Hi,
SimpleIPC under Linux always creates the pipe file under /tmp/.
packages/fcl-process/src/unix/simpleipc.inc
constructor TPipeClientComm.Create(AOWner: TSimpleIPCClient);
Var
D : String;
begin
inherited Create(AOWner);
FFileName:=Owner.ServerID;
If (Owner.ServerInstance<>'') then
FFileName:=FFileName+'-'+Owner.ServerInstance;
D:='/tmp/'; // Change to something better later
FFileName:=D+FFileName;
end;
Can this be made optional, for example to this:
constructor TPipeClientComm.Create(AOWner: TSimpleIPCClient);
begin
inherited Create(AOWner);
FFileName:=Owner.ServerID;
If (Owner.ServerInstance<>'') then
FFileName:=FFileName+'-'+Owner.ServerInstance;
if FFileName[1]<>'/' then
FFileName:='/tmp/'+FFileName;
end;
Should I create a mantis issue?
Mattias
More information about the fpc-devel
mailing list