in reply to Re: main script invoked twice
in thread main script invoked twice
But fork would yield a different process ID. It's not running long enough for PIDs to wrap and the PID is always the same. But I think the exec hint holds water. I know we have at least one piece of code that calls exec to re-start the program after setting environment variables that need to be set before shared libraries are loaded. I bet that's it ... and that would explain why it only happens from cron: those environment variables are normally set in user shells.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: main script invoked twice
by sfink (Deacon) on Mar 29, 2004 at 02:16 UTC | |
|
Re: Re: Re: main script invoked twice
by etcshadow (Priest) on Mar 29, 2004 at 03:15 UTC |