mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 12:42:16 +01:00
refactoring process management: no more orphan processes and quicker chrome startup
This commit is contained in:
@@ -59,12 +59,7 @@ func (p mergePrinter) Print(destination string) error {
|
||||
var args []string
|
||||
args = append(args, p.fpaths...)
|
||||
args = append(args, "cat", "output", destination)
|
||||
cmd, err := xexec.CommandContext(p.ctx, p.logger, "pdftk", args...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
xexec.LogBeforeExecute(p.logger, cmd)
|
||||
return cmd.Run()
|
||||
return xexec.Run(p.ctx, p.logger, "pdftk", args...)
|
||||
}
|
||||
if err := resolver(); err != nil {
|
||||
return xcontext.MustHandleError(
|
||||
|
||||
Reference in New Issue
Block a user