Skip to content

Commit

Permalink
fix tgi-entrypoint wrapper in docker file: exec instead of spawning a…
Browse files Browse the repository at this point in the history
… child process (#2663)

tgi-entrypoint: exec instead of spawning a child process

reason: otherwise parent will receive the signals when we'd like tgi to receive them
keeping the parent/child is not necessary and would require the parent to handle signals to forward them properly to the child

Signed-off-by: Raphael Glon <oOraph@users.noreply.github.com>
Co-authored-by: Raphael Glon <oOraph@users.noreply.github.com>
  • Loading branch information
oOraph and oOraph authored Oct 17, 2024
1 parent 59ea38c commit 1b97e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgi-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

ldconfig 2>/dev/null || echo 'unable to refresh ld cache, not a big deal in most cases'

text-generation-launcher $@
exec text-generation-launcher $@

0 comments on commit 1b97e08

Please sign in to comment.