linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Dan Shearer <dan@shearer.org>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: [PATCH] mconsole fixes
Date: Tue, 27 Jan 2004 20:46:36 -0500	[thread overview]
Message-ID: <200401280146.i0S1kaZw004957@ccure.user-mode-linux.org> (raw)
In-Reply-To: Your message of "Mon, 26 Jan 2004 13:16:17 +1030." <20040126024617.GB4203@erizo.shearer.org>

dan@shearer.org said:
> + * instance over a local pipe connection. This tool does not 
> + * (since uml_mconsole version 1) need to be in sync with the version
> + * of the UML kernel since the commands and their implementation 
> + * are within UML.

The version does need to match.  UML will only talk to one version of mconsole.

The smarts are all in the kernel, but they do need to agree on the format of
the request and the response.

> -    fprintf(stderr, "Sending command to '%s' : ", sun.sun_path);
> -    perror("");
> -    return;
> +    if (strlen(sun.sun_path)==0) {
> +      fprintf(stderr, "No connection exists, cannot send command.\n");
> +    } else {
> +      fprintf(stderr, "While sending command to '%s' : ", sun.sun_path);
> +      perror("");
> +    }
> +    return(1);

I don't see the point of the strlen(sun.sun_path)==0 check, so I'm leaving that
out until I see why it's necessary.

I applied most of the rest of that.  I got rid of the exits from main, since
I like returns better and I tidied up some other stuff.

				Jeff



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-01-28  1:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-26  2:46 [uml-devel] [PATCH] mconsole fixes Dan Shearer
2004-01-28  1:46 ` Jeff Dike [this message]
2004-01-28  2:16   ` [uml-devel] " Dan Shearer
2004-01-28  3:30     ` Dan Shearer
2004-01-28  4:39     ` Jeff Dike

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=200401280146.i0S1kaZw004957@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=dan@shearer.org \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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