[gs-bugs] [Bug 691200] missing EOF in JobServer mode

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Tue Jan 4 18:19:51 UTC 2011


--- Comment #2 from Ray Johnston <ray.johnston at artifex.com> 2011-01-04 18:19:45 UTC ---
Ghostscript does not close the stdio files. It expects the OS to do this when
the process exits.

As far as the PLRM job server action, we don't close stdin or stdout because
then we would not be able to use those files anymore.

There really isn't any way to "transmit and end of file" to stdout or stderr.
If you wanted to implement something like TBCP on stdout and stderr, with the
complementary protocol in whatever is reading 'fromgs', then you could send
and out-of-band logical 'EOF' without actually closing stdout so ghostscript
could continue using stdout for the next job received from stdin.

After processing from stdin, we do the 'restore', then do the top part of the
server loop, continuing to use the stdio files.

If you cause Ghostscript to exit, then (presumably) the OS will close the
stdout and stderr, but that isn't our concern.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list