# Fix \`bun run dev:desktop\` from not terminating properly on SIGINT/SIGTERM/SIGHUP \(\#305\) · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/0763a35fbc60d6209209a5545ab64e1631f43d48)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: 0763a35fbc60d6209209a5545ab64e1631f43d48

Requested commit: 0763a35fbc60d6209209a5545ab64e1631f43d48

Commit: 0763a35fbc60d6209209a5545ab64e1631f43d48

Tree: 3b927cc7521fa96f48b602f9772b5a108ae636f0

Author: Hwanseo Choi

Committer: GitHub

## Message

```
Fix `bun run dev:desktop` from not terminating properly on SIGINT/SIGTERM/SIGHUP (#305)

* fix: handle turbo shutdown in dev runner

* refactor: rely on effect child process shutdown

* refactor: inline turbo shutdown timeout

* add back sigint sigterm sighup handling

* refactor: tighten turbo signal forwarding

* refactor: inline dev runner errors

* fix: use detached false instead of manual signal forwarding

Effect defaults to detached: true on non-Windows, putting turbo in a
new process group where terminal signals (Ctrl+C) never reach it.
Setting detached: false keeps turbo in the same group, eliminating
the need for ~130 lines of manual signal forwarding.

* Update scripts/dev-runner.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
```

## Parents

- [e1c33dcd33949c18eb30986ba513c1334064677c](https://git.cafe/screen/t3code-personal/commit/e1c33dcd33949c18eb30986ba513c1334064677c?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/0763a35fbc60d6209209a5545ab64e1631f43d48?format=markdown)
