# libtmux:stop-daemon

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/daemon.lisp#L143
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-stop-daemon/

```
(stop-daemon daemon)
```

Stop and reap DAEMON's owned child, then remove its checked socket and directory.
Idempotent after success; returns no values. Never targets a daemon through a
reusable PID or socket command. A 0.75-second admission wait and a separate
0.75-second worker join precede any retried job cleanup (up to 0.5 seconds).
Synchronous OS calls and scheduling can extend wall time. Failed cleanup signals
DAEMON-CLEANUP-FAILED and retains the owner for retry. Closing an ordinary client
does not call this function. Terminating the daemon does not establish exit of
every pane descendant.

See also: `libtmux:daemon-cleanup-failures`, `libtmux:pending-daemon-cleanups`, `libtmux:with-daemon`.

## Parameters

- `daemon`
