Project

General

Profile

Actions

Bug #1241

open

kioskOpenURI[dbkiosk.c:455] INFO error on read(): No such device

Added by Hammel 6 days ago. Updated 1 day ago.

Status:
In Progress
Priority:
Immediate
Assignee:
Category:
Runtime
Target version:
Start date:
30 Oct 2025
Due date:
% Done:

10%

Estimated time:
Severity:
01 - Critical

Description

The log message is incorrect. It's not coming from kioskOpenURI. It comes from these lines in the new events.c code.

        /* Read the event - but we don't care about what's in it. */
        if (read(eventsfd, &ev, sizeof(struct input_event)) != sizeof(struct input_event))
        {   
            piboxLogger(LOG_TRACE1, "error on read(): %s\n", strerror(errno));
            continue;
        }
So there are two issues here:
  1. If this happens I may need to restart the events processor. It's getting events but I'm not using the keyboard.
    1. I think this happens because the keyboard it was watching has been detached.
  2. log.c needs a mutex to make sure threads don't overwrite each other.
Actions

Also available in: Atom PDF