aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-06-21 18:38:28 +0000
committerDaniel Jacobowitz <drow@false.org>2003-06-21 18:38:28 +0000
commit325ed0891530d43b77e4d77d300d849243cc6838 (patch)
treef07e9f448872fc874655f5960b45d951e230e700 /gdb/cli
parentc57bb9fa3e53d81d05b3f263797d4a68d6c9272f (diff)
downloadgdb-325ed0891530d43b77e4d77d300d849243cc6838.zip
gdb-325ed0891530d43b77e4d77d300d849243cc6838.tar.gz
gdb-325ed0891530d43b77e4d77d300d849243cc6838.tar.bz2
* Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
* cli/cli-cmds.c: Include "gdb_vfork.h". (shell_escape): Use vfork.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 999ae72..312db5c 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -26,6 +26,7 @@
#include "gdb_wait.h" /* For shell escape implementation */
#include "gdb_regex.h" /* Used by apropos_command */
#include "gdb_string.h"
+#include "gdb_vfork.h"
#include "linespec.h"
#include "expression.h"
#include "frame.h"
@@ -509,7 +510,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);