Commit 3dc755f
committed
Refactor entrypoint.sh to improve signal handling during sleep
- Store the PID of the sleep process to allow for more reliable signal interruption.
- Use a case statement for checking the exit status of the wait command, enhancing portability and clarity.
- Maintain existing functionality while improving code readability and robustness.
Co-authored-by: Jay Rogers <[email protected]>1 parent cf7d6dd commit 3dc755f
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| |||
0 commit comments