coder / coder/envbuilder

Default `sleep infinity` doesn't respond to interrupts

Open
#467 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
300
Forks
64
Avg merge
20m
Merged PRs (30d)
1

Description

I don't know if it's optimal but I usually do:

```sh
#!/usr/bin/env sh

terminate() {
exit 0
}
trap terminate TERM
sleep infinity &
wait
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.