From 3460f36a6622d5788a102b02376f2c1ac71cd049 Mon Sep 17 00:00:00 2001 From: Kris Van Hees Date: Fri, 19 Jul 2013 17:58:43 -0400 Subject: [PATCH] Ensure that the fasttrap device file can be opened. The DTrace utility tries to open the fasttrap provider device file when USDT probes are being used, and due to the open function returning -EAGAIN, the DTrace utility would report that the pid provider is unavailable because the resource is temporarily unavailable. The function now correctly returns 0. Signed-off-by: Kris Van Hees --- dtrace/fasttrap_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtrace/fasttrap_dev.c b/dtrace/fasttrap_dev.c index 545fc37a1e12..2eac2270cdb0 100644 --- a/dtrace/fasttrap_dev.c +++ b/dtrace/fasttrap_dev.c @@ -1420,7 +1420,7 @@ static long fasttrap_ioctl(struct file *file, static int fasttrap_open(struct inode *inode, struct file *file) { - return -EAGAIN; + return 0; } static int fasttrap_close(struct inode *inode, struct file *file) -- 2.50.1