diff options
Diffstat (limited to 'gdb/ser-pipe.c')
-rw-r--r-- | gdb/ser-pipe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c index cc72010..257e0d4 100644 --- a/gdb/ser-pipe.c +++ b/gdb/ser-pipe.c @@ -30,6 +30,7 @@ #include "gdbsupport/gdb_sys_time.h" #include <fcntl.h> #include "gdbsupport/filestuff.h" +#include "gdbsupport/pathstuff.h" #include <signal.h> @@ -122,7 +123,9 @@ pipe_open (struct serial *scb, const char *name) } close_most_fds (); - execl ("/bin/sh", "sh", "-c", name, (char *) 0); + + const char *shellfile = get_shell (); + execl (shellfile, shellfile, "-c", name, (char *) 0); _exit (127); } |