I straced gs run directly (as user "nobody"), as well as gs run from cupsd. After replacing all hex addresses with 0xdeadbeef, the two traces are nigh identical, except cupsd seems to close FDs 0–2, so that when run from cupsd, the first FD used is 0, whereas it's 3 otherwise.

Apart from that, I see absolutely no difference in the syscalls until one of the fails to write the output file.

Straces attached. Go ahead load them in vimdiff!

--
.''`.   martin f. krafft <madduck@d.o> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
 `-  Debian - when you have better things to do than fixing systems

"it takes more keystrokes to enter a windows license key
than it takes to do a complete debian desktop install!"
                                                       -- joey hess

Attachment: gs-run-from-cupsd.strace.xz
Description: application/xz

Attachment: gs-run-from-shell.strace.xz
Description: application/xz

Attachment: digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to