Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-10

Unix.POpen does not work

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

I am porting my fpc-1.0.6 sources to fpc-2.0.4 on Linux.

It seems, that Unix.POpen(TxtFile,cmd,'R') does not work. Giving no error, cmd is not executed, EOF(TxtFile) is true and Unix.PClose gives result 127.

Is that a known issue? I could not find anything about that in the mailing list archive or buck tracking system.

Do I miss something? Is there a workaround?

Heinz

Marco van de Voort
to Unknown author
Show quoted text 8 lines
It seems, that Unix.POpen(TxtFile,cmd,'R') does not work. Giving no error, cmd is not executed, EOF(TxtFile) is true and Unix.PClose gives result 127. Is that a known issue? I could not find anything about that in the mailing list archive or buck tracking system. Do I miss something? Is there a workaround?

Fixed (in 2.1.1, r4894) , probably introduced during the vfork changes. A returnvalue was compared to 1 instead of -1. Twice.