esvu
esvu copied to clipboard
FYI: When using bash for ~/.esvu/bin/v8 v8/d8 continues to run after parent program exits
Re
Some binaries may be exposed as batch/shell scripts to properly handling shared library loading.
When we use this
#!/usr/bin/env -S /home/user/.esvu/bin/v8
as a Native Messaging host called by chrome
to launch d8
, then terminate all instances of chrome
, the script will still be running even after the parent program terminates.
When we use this
#!/usr/bin/env -S /home/user/.jsvu/engines/v8/v8
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 for dash
on my machine) causes this behaviour.
#!/usr/bin/env bash
"/home/user/.esvu/engines/v8/d8" --snapshot_blob="/home/user/.esvu/engines/v8/snapshot_blob.bin" "$@"