Development discussion of WireGuard
 help / color / mirror / Atom feed
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Andrew Burkett <burkett.andrew@gmail.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: wireguard.exe no MessageBox option?
Date: Mon, 17 May 2021 17:07:12 +0200	[thread overview]
Message-ID: <CAHmME9pDQCKGR+bkDREd47y9nXr2Bs-kKOgnmjN6AoP2PddRug@mail.gmail.com> (raw)
In-Reply-To: <CAONL4-+8aiE3tKUn04rp8Zjc=j8vRO56OxLk5k0MoE5aqtURbA@mail.gmail.com>

Hi Andrew,

It's a bit tricky, because UI apps are treated differently than
console apps: cmd.exe won't wait for them to complete, and they get
empty stdio handles. But I've used the latter property to detect
what's up and hopefully achieve some kind of compromise. Let me know
if this commit does the trick:

https://git.zx2c4.com/wireguard-windows/commit/?id=ed59b1b2e834b6d35b11bab63551b21bc60d7f35

Basically, if stderr is available, logs go there. Otherwise if stdout
is available, logs go there. Otherwise errors show in a message box.

So this should allow you to do things like:

wireguard /installtunnelservice ... 2>C:\path\to\log.txt

Jason

      parent reply	other threads:[~2021-05-17 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-13 23:18 Andrew Burkett
2021-05-14 15:15 ` Jonny Proud
2021-05-17 15:07 ` Jason A. Donenfeld [this message]

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=CAHmME9pDQCKGR+bkDREd47y9nXr2Bs-kKOgnmjN6AoP2PddRug@mail.gmail.com \
    --to=jason@zx2c4.com \
    --cc=burkett.andrew@gmail.com \
    --cc=wireguard@lists.zx2c4.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 NNTP newsgroup(s).