Skip to content

soak: restart-watch.sh can orphan its interval sleep when TERM arrives between starting it and recording its PID #1386

Closed

Description

@bpalermo

In e2e/soak/restart-watch.sh, a TERM that lands between sleep … & and SLEEP_PID=$! leaves the sleep running with nothing to kill it. Seen once: a sleep 3599 left behind by harness_test's TERM case held the caller's stdout open for an hour.

Fix: block TERM around the two statements (or start the sleep with its PID captured atomically, e.g. read -t on a fifo instead of a background sleep), and make the test assert no child survives.

Reported by the sortie harness bump (PR #1385), not changed there.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. added
    bug
    minor
    soak
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugminorsoak

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions