Struppi: Webserver wartet auf Scriptende

Beitrag lesen

Das stimmt, und das ist ja auch das Erwünschte. Das Problem ist, daß der Apache trotzdem auf das Ende des Kindprozesses wartet.

Das hatte ich schon verstanden, ich fragte mich nur ob du:

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). If you really want to follow an exec with some other statement, you can use one of these styles to avoid the warning:

»

exec ('foo')   or print STDERR "couldn't exec foo: $!";
    { exec ('foo') }; print STDERR "couldn't exec foo: $!";

a. keine Warnung erhälst und
b. or print STDERR "couldn't exec foo: $!"; ausprobiert hast.

Da ich bisher noch nichts mit exec gemacht habe, ist das nur ein Schuss ins Blaue.
Da wir aber ja weder etwas von den genauen Bedingungen Wissen, noch was du bereits versucht hast, ausser fork, wäre es interessant das auszuschliessen.

Struppi.