Sign in Join

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

Mailing lists / fpc-devel / 2013-09

fpc READ-locks fpc.cfg when compiling?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Martin

IT appears that during compilation (not the whole time, but some brief moment) FPC locks the fpc.cfg.
So far that is expected. while fpc reads it, it must not change.

But it seems the lock also prevents others from reading.

On w32 Vista / fpc 2.6.2

I started 2 compilations (almost at the same time), using the same FPC.exe (and same config and all), and one of them failed, claiming it could not read the config. Starting it again (while the other still running), all worked well.

Reply by email

Tomas Hajny
to Martin
Martin wrote 12 lines
IT appears that during compilation (not the whole time, but some brief moment) FPC locks the fpc.cfg. So far that is expected. while fpc reads it, it must not change. But it seems the lock also prevents others from reading. On w32 Vista / fpc 2.6.2 I started 2 compilations (almost at the same time), using the same FPC.exe (and same config and all), and one of them failed, claiming it could not read the config. Starting it again (while the other still running), all worked well.

Looking at compiler sources, this seems to be fixed in trunk, but the file is indeed locked for reading in fixes_2_6.

Tomas

Reply by email