Wait until no process has the specified executable name.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_wait_for_exit

Purpose

Wait until no process has the specified executable name.

Arguments

  • $1 — Process executable name.
  • $2 — Optional poll interval in seconds (default 0.5).

Side effects

Sleeps between checks; there is no timeout.

Returns

  • 0 when the matching process is no longer running.

Usage

  sgnd_wait_for_exit sshd 1