Nginx / TProcess hell lazarus / 21-General ---------------------------------------------------------------------- pcurtis · 2022-11-20 12:57 I have an issue using Nginx after starting it with TProcess. The server starts and serves web pages, but writes nothing to the access log until I shutdown the server. If I run the server as a stand alone all works as expected. This makes me think that the server is configured ok and that I am not starting it correctly. Any ideas? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   SetCurrentDir('c:\nginx');  Process := TProcess.Create(nil);  try    Process.InheritHandles := False;    Process.Options := [];    Process.ShowWindow := swoHIDE;     Process.Executable := 'c:\nginx\nginx.exe';     Process.Execute;  finally    Process.Free;  end; ---------------------------------------------------------------------- Jurassic Pork · 2022-11-20 14:01 hello, why are you starting nginx with Lazarus ? Friendly, J.P ---------------------------------------------------------------------- pcurtis · 2022-11-20 16:38 Making a GUI ---------------------------------------------------------------------- Thaddy · 2022-11-20 16:44 Silly, but anyway: - inheritedhandles should be true - Input, Output and stderr properties of TProcess or TprocessAsync should be handled towards your GUI. (All of this is most likely not a very good design) The hell is that you want feedback where feedback is not due. Logging is better. ---------------------------------------------------------------------- pcurtis · 2022-11-24 09:21 That's the problem. THE LOG files aren't written to until I terminate the nginx process. ---------------------------------------------------------------------- Thaddy · 2022-11-24 09:28 That is really strange if you have correctly implemented stdin/out/err and with inherited handles.