Open guest271314 opened 1 month ago
@guest271314 I'm not entirely sure what you're trying to do but it sounds like something that exec
might fix:
#!/usr/bin/env bash
exec "/home/user/.esvu/engines/v8/d8" --snapshot_blob="/home/user/.esvu/engines/v8/snapshot_blob.bin" "$@"
If you test this and it works for you, please consider opening a PR.
Using exec
fixes the issue. Where in esvu
source code is the v8
shell script generated?
Re
When we use this
as a Native Messaging host called by
chrome
to launchd8
, then terminate all instances ofchrome
, the script will still be running even after the parent program terminates.When we use this
d8
terminates when the parent program, in this case,chrome
, closes.Not sure if this is known or not that using
bash
here (which is an alias fordash
on my machine) causes this behaviour.