When opening a trace file, open O_NONBLOCK so that ktrace doesn't stall if the target is a fifo. After opening a trace file, check that it is a regular file, and if not, return an error. Reported by: kris PR: 94278 Approved by: re (scottl)
When opening a trace file, open O_NONBLOCK so that ktrace doesn't stall if the target is a fifo. After opening a trace file, check that it is a regular file, and if not, return an error. Reported by: kris PR: 94278 Approved by: re (scottl)