[fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

fred f ffred69 at gmail.com
Wed Jul 20 12:23:57 CEST 2011


On Wed, Jul 20, 2011 at 9:12 AM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 20 Jul 2011, at 08:13, Marco van de Voort wrote:
>
>> Probably you have to walk to some of the job control related commands which
>> are also done during daemonization. Essentially you want to detach from
>> parent, but maybe not become a full daemon (without stdin-out, specially
>> when they are piped)
>
> Looking at what nohup does could be a good start.

Thanks for nohup tip which works fine, but there is another point what
makes me trouble.

My "mother" application has opened some files when calls its daughter
over nohup. But the daugther gets all files opened to its processid.

when I check it with "ls -l /proc/PROCESSID/fd" I see all files linked
to daughter when mother has closed them all. This raises me problems
with next start of mother where daughter is still alive.

How to get rid of this never ending story.

Thanks in advance.

F.



More information about the fpc-pascal mailing list