-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempt to catch exceptions from usb_handler child process
This commit adds a 'status' instance field to the multiprocessing.Process() child process, which starts-out at 0 and gets incremented by the child process at some unknown interval (actually its updated by the parent by listening to a 'ping' command placed into the queue by the child). This allows the parent to check-on the state of the child process after launching it, which is important because exceptions thrown by the child won't raise an exception up to the parent (we could catch it, but that would be blocking). This allows us to detect if there's issues immediately after the user clicks the "arm" button. After this commit, we can prevent the app from giving the user a false sense of security, because we'll throw an error on toggle() if the child isn't well and the GUI will remain blue/disarmed rather than saying it's armed (even if it can't possibly trigger because the child process has issues) * #77 (comment)
- Loading branch information
Showing
3 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,8 @@ set -x | |
# | ||
# Authors: Michael Altfield <[email protected]> | ||
# Created: 2020-05-30 | ||
# Updated: 2024-03-22 | ||
# Version: 1.3 | ||
# Updated: 2024-07-26 | ||
# Version: 1.4 | ||
################################################################################ | ||
|
||
################################################################################ | ||
|
@@ -115,7 +115,7 @@ fi | |
# get the app's dependencies | ||
tmpDir="`mktemp -d`" || exit 1 | ||
pushd "${tmpDir}" | ||
git clone https://github.com/BusKill/buskill-app-deps.git | ||
git clone --no-tags --depth 1 https://github.com/BusKill/buskill-app-deps.git | ||
|
||
mkdir gnupg | ||
chmod 0700 gnupg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters