mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
PreviewLoader: start fake pids after PID_MAX_LIMIT
(cherry picked from commit b67ff925e5
)
This commit is contained in:
parent
3f14be7739
commit
ebf09680da
@ -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;
|
||||
|
@ -68,6 +68,7 @@ What's new
|
||||
|
||||
* INTERNALS
|
||||
|
||||
- Fix wrong computation of what is an obviously fake PID number.
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
Loading…
Reference in New Issue
Block a user