Description of Problem: If running /usr/sbin/makewhatis manually, an attempt to terminate its operation via SIGINT does not exit. Instead, it just deletes temp files and continues executing. The culprit is the statement at line 57: trap "rm -rf $TMPFILEDIR" 0 1 2 3 15 If that statement is changed to the following, all is well: trap "{ rm -rf $TMPFILEDIR ; exit 255 ; }" 0 1 2 3 15 Version-Release number of selected component (if applicable): man-1.5i2-6 How Reproducible: Always Steps to Reproduce: 1. /usr/sbin/makewhatis 2. Let it run for a few seconds, then control-c. Actual Results: makewhatis does not exit. It runs for a while longer and then complains about missing temp files before finally exiting. Expected Results: makewhatis should exit. The temp files should be deleted. This is what happens with the change I suggested above. Additional Information:
Right. Fixed in 1.5j-6.
This fix apparently never made it into distribution, as it does not appear in man-1.5j-6 (7.3) or man 1.5j-11 (8.0): # make sure TMPFILEDIR is deleted if program is killed or terminates # (just delete this line if your shell doesnt know about trap) trap "rm -rf $TMPFILEDIR" 0 1 2 3 15 The indicated failure to terminate on ^C also persists.