Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Use vfork in shell_escape
@ 2002-10-21 18:51 Daniel Jacobowitz
  2002-10-22 13:54 ` Michael Snyder
  2002-11-05 13:43 ` Daniel Jacobowitz
  0 siblings, 2 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2002-10-21 18:51 UTC (permalink / raw)
  To: gdb-patches; +Cc: fnasser

This patch is pretty obvious.  I couldn't figure out why my machine was
running out of memory; forking GDB to run an 'ls' during the maint.exp tests
can be a bit heavy, since it may have all of glibc's debug info loaded. 
This patch seems logical to me... OK to commit?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2002-10-21  Daniel Jacobowitz  <drow@mvista.com>

	* cli/cli-cmds.c (shell_escape): Use vfork.

Index: cli/cli-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v
retrieving revision 1.22
diff -u -p -r1.22 cli-cmds.c
--- cli/cli-cmds.c	22 Sep 2002 22:18:41 -0000	1.22
+++ cli/cli-cmds.c	22 Oct 2002 01:47:15 -0000
@@ -517,7 +517,7 @@ shell_escape (char *arg, int from_tty)
   else
     p++;			/* Get past '/' */
 
-  if ((pid = fork ()) == 0)
+  if ((pid = vfork ()) == 0)
     {
       if (!arg)
 	execl (user_shell, p, 0);


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-06-21 18:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-21 18:51 [RFA] Use vfork in shell_escape Daniel Jacobowitz
2002-10-22 13:54 ` Michael Snyder
2002-10-22 13:56   ` Daniel Jacobowitz
2002-10-22 14:00     ` Michael Snyder
2002-10-22 14:43       ` Andrew Cagney
2002-10-22 14:59         ` Elena Zannoni
2002-11-05 13:43 ` Daniel Jacobowitz
2003-06-21 18:39   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox