On Mon, 2 Dec 2019 15:08:39 +0100 José Bollo <jo...@nonadev.net> wrote:
> On Mon, 2 Dec 2019 15:04:52 +0100 > José Bollo <jo...@nonadev.net> wrote: > > rereading comment of MHD_USE_INTERNAL_POLLING_THREAD my question looks > stupid No in fact the question is serious. There is no simple way to let run MHD on the main thread. It requires implementing an external poll/select loop. Can you provide an integrated main that serves and doesn't return until stopped? Best regards José Bollo > > sorry for the noise > > > Hi all, > > > > I searched in examples how to "block" in main thread on serving > > files but I only found examples with the sequence summarized here: > > > > MHD_start_daemon ... getc ... MHD_stop_daemon > > > > For my use I'm searching to just run the server without having to > > wait for a key or anything except ctrl+C or killed. > > > > It leads me to the question: "is there an easy way to serve in main > > thread?" (by easy I mean without rewriting an external polling loop > > as shown in example fileserver_example_external_select.c) Did I > > missed some option? > > > > Best regards > > José Bollo > > > >