From 3a36c30f59fc2f634dabf9d419b6b1b51fd00899 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 15 Mar 2014 17:46:01 +0100 Subject: add hint about debugging --- udev/ykfde.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'udev') diff --git a/udev/ykfde.c b/udev/ykfde.c index 2077583..b89f613 100644 --- a/udev/ykfde.c +++ b/udev/ykfde.c @@ -119,6 +119,9 @@ int main(int argc, char **argv) { int fd_inotify, watch, length, i = 0; char buffer[EVENT_BUF_LEN]; + /* reopening stderr to /dev/console may help debugging... */ + /* freopen("/dev/console", "w", stderr); */ + /* check if challenge file exists */ if (access(CHALLENGEFILE, R_OK) == -1) goto out10; -- cgit v1.2.3-70-g09d2