unix function 'daemon' on freepascal. lazarus / 23-Operating Systems ---------------------------------------------------------------------- BSaidus · 2019-10-25 09:24 Hi !! Is there a freepascal function that can be used like a C function daemon. 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    int daemon(int nochdir, int noclose);  Thanks. ---------------------------------------------------------------------- Thaddy · 2019-10-25 09:31 in the fpc directory /packages/rtl-extra/daemon.pp ---------------------------------------------------------------------- Guva · 2019-10-25 10:22 lazdaemon package. Creating a service in Lazarus (rus) https://devlaz.ru/daemons-in-lazarus/ ---------------------------------------------------------------------- BSaidus · 2019-10-25 12:53 Quote from: Thaddy on October 25, 2019, 11:31:43 amin the fpc directory /packages/rtl-extra/daemon.pp I use trunk version of FPC and there is not such unit. Thanks. ---------------------------------------------------------------------- BSaidus · 2019-10-25 12:56 Quote from: indigo80 on October 25, 2019, 12:22:25 pmlazdaemon package. Creating a service in Lazarus (rus) https://devlaz.ru/daemons-in-lazarus/ I want to write an FPC console application without attaching any object to project. just functions. thanks ---------------------------------------------------------------------- Thaddy · 2019-10-25 13:09 The daemon example uses a very shallow object wrapper around the procedural interfaces, so simply examine the implementation. Note you will lose cross-platform capabilities if you don't use the class wrapper. ---------------------------------------------------------------------- marcov · 2019-10-25 13:11 Quote from: BSaidus on October 25, 2019, 02:53:59 pmQuote from: Thaddy on October 25, 2019, 11:31:43 amin the fpc directory /packages/rtl- extra/daemon.pp I use trunk version of FPC and there is not such unit. Thanks. There is a src/ missing. ---------------------------------------------------------------------- BSaidus · 2019-10-25 13:42 Quote from: marcov on October 25, 2019, 03:11:22 pmQuote from: BSaidus on October 25, 2019, 02:53:59 pmQuote from: Thaddy on October 25, 2019, 11:31:43 amin the fpc directory /packages/rtl-extra/daemon.pp I use trunk version of FPC and there is not such unit. Thanks. There is a src/ missing. NO !! there is not !! Or I miss something. ---------------------------------------------------------------------- lucamar · 2019-10-25 14:23 Look inside packages/rtl-extra/src/ Sorry; just looked and it's in: packages/fcl-extra/examples/daemon.pp ---------------------------------------------------------------------- BSaidus · 2019-10-30 15:13 Thnks to all. I found a fork function and it make my needs. thank you !!