Revision c6ab4d99
Von Sven Schöling vor fast 12 Jahren hinzugefügt
SL/Template/OpenDocument.pm | ||
---|---|---|
457 | 457 |
last; |
458 | 458 |
} |
459 | 459 |
|
460 |
if ($::dispatcher->interface_type eq 'FastCGI') { |
|
461 |
$::dispatcher->{request}->Detach; |
|
462 |
} |
|
463 |
|
|
460 | 464 |
if (!$spawned_oo) { |
461 | 465 |
my $pid = fork(); |
462 | 466 |
if (0 == $pid) { |
463 | 467 |
$main::lxdebug->message(LXDebug->DEBUG2(), " Child daemonizing\n"); |
468 |
|
|
469 |
if ($::dispatcher->interface_type eq 'FastCGI') { |
|
470 |
$::dispatcher->{request}->Finish; |
|
471 |
$::dispatcher->{request}->LastCall; |
|
472 |
} |
|
464 | 473 |
chdir('/'); |
465 | 474 |
open(STDIN, '/dev/null'); |
466 | 475 |
open(STDOUT, '>/dev/null'); |
... | ... | |
474 | 483 |
"-accept=socket,host=localhost,port=" . |
475 | 484 |
$::lx_office_conf{print_templates}->{openofficeorg_daemon_port} . ";urp;"); |
476 | 485 |
exec(@cmdline); |
486 |
} else { |
|
487 |
# parent |
|
488 |
if ($::dispatcher->interface_type eq 'FastCGI') { |
|
489 |
$::dispatcher->{request}->Attach; |
|
490 |
} |
|
477 | 491 |
} |
478 | 492 |
|
479 | 493 |
$main::lxdebug->message(LXDebug->DEBUG2(), " Parent after fork\n"); |
Auch abrufbar als: Unified diff
Opendocument PDF Konvertierung unter FCGI ermöglicht
Forken unter FCGI muss die in/out streams gesondert behandeln.