File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ rm -rf $RPM_BUILD_ROOT
87
87
# - Use wheels to build/install Python package, which simplified the entry
88
88
# points and improves (slightly) the metadata
89
89
90
+
91
+ #- Fix the httokensh background process's check for its parent process.
92
+ # That is only a backup in case only the parent process is hard-killed,
93
+ # because normally the parent process kills the background process when
94
+ # the parent exits.
95
+
90
96
*
Thu Aug 17 2023 Dave Dykstra <[email protected] > 1.20-1
91
97
- Update httokensh to by default set the minimum vault token time to live to
92
98
6 days, and to make sure that the background refresh never gets a new vault
Original file line number Diff line number Diff line change @@ -136,16 +136,18 @@ set -m
136
136
137
137
echo " Renewal log is at \$ BEARER_TOKEN_FILE.log"
138
138
{
139
+ # keep a copy of $PPID because it will change to 1 if parent dies
140
+ PARENTPID=$PPID
139
141
echo htgettoken args are " ${HTGETTOKENARGS[@]} "
140
142
while true ; do
141
143
date
142
144
echo " Renewal scheduled in $SLEEPSECS seconds"
143
145
sleep $SLEEPSECS
144
146
date
145
- if kill -0 $PPID ; then
147
+ if kill -0 $PARENTPID ; then
146
148
gettoken " exiting" 60
147
149
else
148
- echo " Parent process $PPID not running, exiting"
150
+ echo " Parent process $PARENTPID not running, exiting"
149
151
exit 0
150
152
fi
151
153
done
You can’t perform that action at this time.
0 commit comments