Skip to content

Leverage caffeinate -w instead of killall#38

Open
saladd-bu wants to merge 1 commit intokandji-inc:mainfrom
saladd-bu:main
Open

Leverage caffeinate -w instead of killall#38
saladd-bu wants to merge 1 commit intokandji-inc:mainfrom
saladd-bu:main

Conversation

@saladd-bu
Copy link

This pull request is to update the InstallLargePKG.sh approach to a more precise caffeinate usage.

Currently, the script uses killall caffeinate, which may inadvertently kill instances of caffeinate present on the machine through other means.

This updated approach uses caffeinate's -w parameter in combination with shell built-in variable $$ to provide caffeinate with the script's shell instance PID. Once the script completes (or otherwise exits/terminates), the instance of caffeinate created during script execution will tear itself down while leaving other instances running (if present).

@snyk-io
Copy link

snyk-io bot commented Aug 18, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant