Avoid that the following error messages are reported when redirecting stdin:
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
Cc: Logan Gunthorpe <logang@deltatee.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Fixes: a987b10bc179 ("nvme: Ensure all ports and subsystems are removed on cleanup")
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
fi
# Don't let successive Ctrl-Cs interrupt the cleanup processes
- stty -isig
+ trap '' SIGINT
shopt -s nullglob
done
shopt -u nullglob
- stty isig
+ trap SIGINT
modprobe -r nvme-loop 2>/dev/null
modprobe -r nvmet 2>/dev/null