Would it be necessary to put this in master(), as that's where the easiest access to agv/c would be?
Some support in the master is necessary, but the function itself probably belongs in the Process module. There are already two variables _pike_file_name and _master_file_name in the master for this.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-12-17 03:30: Subject: Re: fork()ing into background (was Pike 7.6)
Yes, on SunOS 5.9
Good. I think the problem with threads at startup was on e.g. Solaris. Did you test there?
Would it be necessary to put this in master(), as that's where the easiest access to agv/c would be?
It doesn't. It's useful to start new pike scripts at any time in a multithreaded application. fork only works at startup before any threads are started.
/ Brevbäraren
pike-devel@lists.lysator.liu.se