Enrique Zanardi wrote:
Memory penalty. As busybox and dinstall are linked together in this
implementation, forking implies doubling the already big memory
requirements. Perhaps we should implement a libbusybox.so ...
No it does not, thanks to Linux shared memeory.
--
Debian GNU/Linux 1.3
Enrique == Enrique Zanardi [EMAIL PROTECTED] writes:
Enrique Any ideas?
`publib' has some editor buffer stuff in it... could you use that
somehow?
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] .
Trouble? e-mail to [EMAIL PROTECTED] .
(I need that to display messages directed to stderr from busybox when
linked to a Slang program, as in:
Uh? Why don't you just do...
int p[2];
pipe(p);
if(!fork())
{
dup2(p[1],2);
exec...
}
/* now you can read the output from the p[0] file descriptor... */
--
TO UNSUBSCRIBE
On Mon, 15 Dec 1997, Nicolás Lichtmaier wrote:
(I need that to display messages directed to stderr from busybox when
linked to a Slang program, as in:
Uh? Why don't you just do...
int p[2];
pipe(p);
if(!fork())
{
dup2(p[1],2);
exec...
}
/* now you can read the output
From: Enrique Zanardi [EMAIL PROTECTED]
Memory penalty. As busybox and dinstall are linked together in this
implementation, forking implies doubling the already big memory
requirements.
No, sorry, that's not right. Busybox is actually much more efficient
than you think.
The text of the
[EMAIL PROTECTED] (Enrique Zanardi) wrote on 16.12.97 in [EMAIL PROTECTED]:
On Mon, 15 Dec 1997, Nicolás Lichtmaier wrote:
Uh? Why don't you just do...
int p[2];
pipe(p);
if(!fork())
{
dup2(p[1],2);
exec...
}
/* now you can read the output from the p[0] file
Hello!
Is there an easy way to redirect stderr to memory?
I was thinking about something like:
FILE *stream,*tmpstream;
char *streambuf;
size_t streamsize;
stream=open_memstream(streambuf,streamsize);
tmpstream=stderr;
stderr=stream;
but it doesn't work, because stderr is not a
7 matches
Mail list logo