Skip to content

Localize the stop condition to make it more library-friendly.#2105

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/936759616
Open

Localize the stop condition to make it more library-friendly.#2105
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/936759616

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Localize the stop condition to make it more library-friendly.

Otherwise, when invoking the library interface, one invocation that triggers an early stop can affect other invocations. Also currently the library call installs signal handlers, which is global and can conflict with existing handlers.

Moved the signal handling from the library to the binary entry code.

The main library entry CentipedeMain takes an optional StopCondition to allow early stop to be requested externally (from the signal handlers).

@copybara-service copybara-service Bot changed the title No public description Localize the stop condition to make it more library-friendly. Jun 25, 2026
@copybara-service copybara-service Bot force-pushed the cl/936759616 branch 3 times, most recently from 356f8fe to 088c01a Compare June 25, 2026 20:08
Otherwise, when invoking the library interface, one invocation that triggers an early stop can affect other invocations. Also currently the library call installs signal handlers, which is global and can conflict with existing handlers.

Moved the signal handling from the library to the binary entry code.

The main library entry CentipedeMain takes an optional StopCondition to allow early stop to be requested externally (from the signal handlers).

PiperOrigin-RevId: 936759616
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant