jjverkui@cs.ruu.nl (Hans Verkuil) (05/29/91)
I'd like to know how I can detach a program started from the CLI so it will run in the background. My program doesn't need any I/O with a window, but it must read several files (which are unknown when the program starts up, so I cannot preload them) and so it cannot be started as a task. At the moment I use 'runback', but it should be done by my program without any need of another utility. Also, I noticed that when I compared the memory usage of my program started without runback, and when started with runback, quite a lot of memory was used extra (some 8 Kbytes if I remember it correctly, and with a stacksize of 4000). So, since I don't have an AmigaDos manual, I'm asking for a well commented simple C-program that detaches itself from the CLI and will live on as an indepent process. As an aside: how much memory is needed for a process? How much memory does a program started with runback use, compared to a program that detaches itself from the CLI? If it is the same, then there is no real reason for not using runback except for ease of use. So, if someone is able to E-mail me a C-language example, I'd appreciate it. (Please E-mail me. I won't be able to read news every day for some time, so if you'd post it only, I might miss it.) ---------------------------------------------------------------------------- Hans Verkuil, Toendra 115, 2904 TK Capelle a/d IJssel, The Netherlands Student Computer Science - Utrecht University - (jjverkui@praxis.cs.ruu.nl) "...and the princesses were beautiful as the day is long and so noble they could pee through a dozen mattresses --" (Terry Pratchett) -- ---------------------------------------------------------------------------- Hans Verkuil, Toendra 115, 2904 TK Capelle a/d IJssel, The Netherlands Student Computer Science - Utrecht University - (jjverkui@praxis.cs.ruu.nl)