From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: Printing stops after 6 pages
Date: Mon, 15 Mar 2004 21:11:09 +0300 [thread overview]
Message-ID: <4055F1BD.5020908@aknet.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
Hello.
Denny Schierz wrote:
> we using dosemu 1.3.0 with direct printing. The problem is, if we
> printing more than six pages, the printer stops. I can't find any
> solution for that :-/
> any hinds?
Try -D9+p log, maybe that will
shed some light on a problem.
But even at a first glance there
seem to be a memory leak in a
printer code, which is probably
responsible for your problem. Try
the attached patch.
[-- Attachment #2: lpt.diff --]
[-- Type: text/plain, Size: 357 bytes --]
--- src/base/dev/misc/lpt.c Sun Jan 18 00:30:29 2004
+++ src/base/dev/misc/lpt.c Mon Mar 15 21:04:07 2004
@@ -155,6 +155,7 @@
if (pipe == NULL)
error("system(\"%s\") in lpt.c failed, cannot print!\
Command returned error %s\n", cmdbuf, strerror(errno));
+ free(cmdbuf);
bufsize = ftell(lpt[prnum].file);
buf = malloc(bufsize);
[-- Attachment #3: Type: text/plain, Size: 81 bytes --]
Scanned by evaluation version of Dr.Web antivirus Daemon
http://drweb.ru/unix/
next reply other threads:[~2004-03-15 18:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-15 18:11 Stas Sergeev [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-03-15 10:50 Printing stops after 6 pages Denny Schierz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4055F1BD.5020908@aknet.ru \
--to=stsp@aknet.ru \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.