projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2003-04-08 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git]
/
gdb
/
ser-pipe.c
diff --git
a/gdb/ser-pipe.c
b/gdb/ser-pipe.c
index 669094116582c8d8612ab2db3e91dd60d2660778..bca0e54e4bab95eb834e2229f6dc1d1ac228ccd2 100644
(file)
--- a/
gdb/ser-pipe.c
+++ b/
gdb/ser-pipe.c
@@
-1,5
+1,5
@@
/* Serial interface for a pipe to a separate program
/* Serial interface for a pipe to a separate program
- Copyright 1999, 2001 Free Software Foundation, Inc.
+ Copyright 1999, 200
0, 200
1 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
Contributed by Cygnus Solutions.
@@
-34,8
+34,8
@@
#include <signal.h>
#include <signal.h>
-static int pipe_open (s
erial_t
scb, const char *name);
-static void pipe_close (s
erial_t
scb);
+static int pipe_open (s
truct serial *
scb, const char *name);
+static void pipe_close (s
truct serial *
scb);
extern void _initialize_ser_pipe (void);
extern void _initialize_ser_pipe (void);
@@
-47,7
+47,7
@@
struct pipe_state
/* Open up a raw pipe */
static int
/* Open up a raw pipe */
static int
-pipe_open (s
erial_t
scb, const char *name)
+pipe_open (s
truct serial *
scb, const char *name)
{
#if !HAVE_SOCKETPAIR
return -1;
{
#if !HAVE_SOCKETPAIR
return -1;
@@
-65,6
+65,10
@@
pipe_open (serial_t scb, const char *name)
if (socketpair (AF_UNIX, SOCK_STREAM, 0, pdes) < 0)
return -1;
if (socketpair (AF_UNIX, SOCK_STREAM, 0, pdes) < 0)
return -1;
+ /* Create the child process to run the command in. Note that the
+ apparent call to vfork() below *might* actually be a call to
+ fork() due to the fact that autoconf will ``#define vfork fork''
+ on certain platforms. */
pid = vfork ();
/* Error. */
pid = vfork ();
/* Error. */
@@
-113,7
+117,7
@@
pipe_open (serial_t scb, const char *name)
}
static void
}
static void
-pipe_close (s
erial_t
scb)
+pipe_close (s
truct serial *
scb)
{
struct pipe_state *state = scb->state;
if (state != NULL)
{
struct pipe_state *state = scb->state;
if (state != NULL)
This page took
0.024354 seconds
and
4
git commands to generate.