Commit 096d858
committed
fix: enforce two-stage verification for Unix process candidates
- Unix branch was using only string matching to add PIDs to candidates
- Now validates each PID with isDeepnoteRelatedProcess() before adding
- Added re-verification in kill/lock loop before any action
- Matches Windows two-stage verification pattern
- Prevents false positives from ps output string matching
- Ensures only verified deepnote-related processes are considered
- Adds safety check in case process changes between detection and action1 parent 2345dfc commit 096d858
1 file changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
| 972 | + | |
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
976 | 976 | | |
977 | | - | |
| 977 | + | |
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
983 | | - | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
984 | 988 | | |
985 | 989 | | |
986 | 990 | | |
| |||
996 | 1000 | | |
997 | 1001 | | |
998 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
999 | 1011 | | |
1000 | 1012 | | |
1001 | 1013 | | |
| |||
0 commit comments