Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Indy HTTP Server in linux daemon shutdown problem
#1
I have a small linux/windows daemon written under Lazarus/FPC.
There is some TThread descendant class, which is created at daemon startup event.
The class create Indy HTTP Server in it constructor. The HTTP Server works fine both as linux daemon/windows service.
There is code that set HTTPServer.Active := False and FreeAndNil Httpserver on thread termination.
Under Windows everything working perfect.
But under linux HTTPServer.Active:=false causes HTTPServer to hang up.

Even when I start a daemon with -r and try to press Ctrl+C it will not terminate. Some times after that I received Äccess violation" or "Segmentation fault".

Any ideas? I think it is some-how related with synchronization (TThread.Synchroinize does not work under ??) Can somebody help?
Reply


Messages In This Thread
Indy HTTP Server in linux daemon shutdown problem - by ZGabrovski@gmail.com - 06-13-2021, 08:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)