#213 running daemonized doesn't work on MIPS

v1.0 (example)
open
nobody
None
6
2014-03-06
2013-10-27
chud
No

Hi Justin, Thanks for a great piece of software - just a quick bug report...

On line 1004 of minidlna.c, this does not return when running daemonized on my MIPS32 board.

else if (pthread_create(&inotify_thread, NULL, start_inotify, NULL) != 0)

I added various debug points and from what I can tell it starts executing inotify.c ok, with it ending up looping as normal in start_inotify(), but nothing returns back to minidlan.c and so proceeding lines such as
smonitor = OpenAndConfMonitorSocket();
and below never execute.

It runs fine in debug mode and -S mode, presumably as they don't daemonise.

(Incidentally the board I am updating this on is a Netgear one - on the original it is running in debug mode presumably as they encountered the same problem)

Cheers

Rich

Discussion

  • chud
    chud
    2013-10-27

    I forgot to say setting inotify off in the config skips that INOTIFY code block and it works fine daemonized.