Re: exec and detach a subprocess

[prev] [thread] [next] [Date index for 2005/02/19]

From: Igor Shevchenko
Subject: Re: exec and detach a subprocess
Date: 17:18 on 19 Feb 2005
On Saturday 19 February 2005 18:51, you wrote:
> please check one more thing where is your cwd in the spawned script, it
> should be '/'. in mp1 one had to manually chdir '/' in the script, but I
> believe the Apache C API called from spawn_proc_prog does it for you. Is
> that right?

Checked, it was not doing chdir.

>  > CORE::exit(0);
>
> and you don't need this either, especiall if you call exec()

Right, it was there to avoid any perl warnings for "exec-not-followed-by-{die 
|| warn || exit}". From "man perlfunc":

>Since it's a common mistake to use "exec" instead of "system",
>Perl warns you if there is a following statement which isn't
>"die", "warn", or "exit" (if "-w" is set  -  but you always do
>that).

        -- 
        Best Regards,
Igor Shevchenko

(message missing)

exec and detach a subprocess
Igor Shevchenko 23:25 on 18 Feb 2005

Re: exec and detach a subprocess
Stas Bekman 01:06 on 19 Feb 2005

Re: exec and detach a subprocess
Igor Shevchenko 14:29 on 19 Feb 2005

Re: exec and detach a subprocess
Stas Bekman 16:44 on 19 Feb 2005

Re: exec and detach a subprocess
Igor Shevchenko 17:02 on 19 Feb 2005

Re: exec and detach a subprocess
Stas Bekman 17:06 on 19 Feb 2005

Re: exec and detach a subprocess
Stas Bekman 16:51 on 19 Feb 2005

Re: exec and detach a subprocess
Igor Shevchenko 17:18 on 19 Feb 2005

Re: exec and detach a subprocess
Stas Bekman 17:26 on 19 Feb 2005

Re: exec and detach a subprocess
Igor Shevchenko 14:20 on 20 Feb 2005

Re: exec and detach a subprocess
Stas Bekman 01:16 on 21 Feb 2005

Re: exec and detach a subprocess
Igor 08:28 on 21 Feb 2005

Re: exec and detach a subprocess
Stas Bekman 01:58 on 22 Feb 2005

Generated at 22:43 on 24 Feb 2005 by mariachi v0.52