# Fix zed sometimes stopping by using setsid on interactive shells \(\#29070\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8c550634179bb1e22a5cc18ebc9c4c4219b51da5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8c550634179bb1e22a5cc18ebc9c4c4219b51da5

Requested commit: 8c550634179bb1e22a5cc18ebc9c4c4219b51da5

Commit: 8c550634179bb1e22a5cc18ebc9c4c4219b51da5

Tree: bb5c31cba79589455aab8142ec9bd9cfb4379ac1

Author: Michael Sloan

Committer: GitHub

## Message

```
Fix zed sometimes stopping by using setsid on interactive shells (#29070)

For some reason `SIGTTIN` sometimes gets sent to the process group,
causing it to stop when run from a terminal. This solves that issue by
putting the shell in a new session + progress group.

This allows removal of a workaround of using `exit 0;` to restore
handling of ctrl-c after exit. In testing this appears to no longer be
necessary.

Closes #27716

Release Notes:

- Fixed Zed sometimes becoming a stopped background process when run
from a terminal.
```

## Parents

- [7abe2c9c3188b8662ed03007a1f8c21c3c156075](https://git.cafe/gitcafe/zed/commit/7abe2c9c3188b8662ed03007a1f8c21c3c156075?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8c550634179bb1e22a5cc18ebc9c4c4219b51da5?format=markdown)
