mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
PreviewLoader: start fake pids after PID_MAX_LIMIT
This commit is contained in:
parent
8f3c95f757
commit
b67ff925e5
@ -727,7 +727,8 @@ void PreviewLoader::Impl::startLoading(bool wait)
|
||||
if (wait) {
|
||||
ForkedCall call(buffer_.filePath(), buffer_.layoutPos());
|
||||
int ret = call.startScript(ForkedProcess::Wait, command);
|
||||
static atomic_int fake((1 << 20) + 1);
|
||||
// PID_MAX_LIMIT is 2^22 so we start one after that
|
||||
static atomic_int fake((1 << 22) + 1);
|
||||
int pid = fake++;
|
||||
inprogress.pid = pid;
|
||||
inprogress.command = command;
|
||||
|
Loading…
Reference in New Issue
Block a user