public inbox for rda@sourceware.org
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: rda@sources.redhat.com
Subject: RFA: check for error result from gdbsocket_startup.
Date: Thu, 07 Oct 2004 16:10:00 -0000	[thread overview]
Message-ID: <vt2acuyzez7.fsf@zenia.home> (raw)


rda/unix/ChangeLog:
2004-10-07  Jim Blandy  <jimb@redhat.com>

	* server.c (main): Check for an error return from
	gdbsocket_startup.

Index: rda/unix/server.c
===================================================================
RCS file: /cvs/src/src/rda/unix/server.c,v
retrieving revision 1.7
diff -c -p -r1.7 server.c
*** rda/unix/server.c	20 Jul 2004 00:42:45 -0000	1.7
--- rda/unix/server.c	7 Oct 2004 16:03:08 -0000
*************** main (int argc, char **argv)
*** 389,395 ****
  
    if (portno != 0)
      {
!       gdbsocket_startup (portno, gdbserver.attach, process);
        if (process->debug_informational)
  	fprintf (stderr, "Started listening socket on port %d.\n", portno);
      }
--- 389,400 ----
  
    if (portno != 0)
      {
!       if (gdbsocket_startup (portno, gdbserver.attach, process) < 0)
!         {
!           fprintf (stderr, "Error listening on port %d: %s\n",
!                    portno, strerror (errno));
!           return 2;
!         }
        if (process->debug_informational)
  	fprintf (stderr, "Started listening socket on port %d.\n", portno);
      }

             reply	other threads:[~2004-10-07 16:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-07 16:10 Jim Blandy [this message]
2004-10-07 16:17 ` Kevin Buettner
2004-10-07 19:16   ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vt2acuyzez7.fsf@zenia.home \
    --to=jimb@redhat.com \
    --cc=rda@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).