aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-03-15 17:46:01 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-03-15 17:46:01 +0100
commit3a36c30f59fc2f634dabf9d419b6b1b51fd00899 (patch)
treefeb618c5fdc83b7a16a3c485ef2bed404aa7b859
parent565ff71af87b24c5746017ee51858fd8649beef9 (diff)
downloadmkinitcpio-ykfde-3a36c30f59fc2f634dabf9d419b6b1b51fd00899.tar.gz
mkinitcpio-ykfde-3a36c30f59fc2f634dabf9d419b6b1b51fd00899.tar.zst
add hint about debugging
-rw-r--r--udev/ykfde.c3
1 files changed, 3 insertions, 0 deletions
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;