[systemd-devel] [PATCH] docs: handle-sleep-key is invalid, replace it with handle-suspend-key and handle-hibernate-key in systemd-inhibit help and man.

ChALkeR chalkerx at gmail.com
Thu Oct 4 04:11:38 PDT 2012


Thanks.

Actually, it was like this:
1) I posted the patch in irc. It wasn't noticed.
2) The next day i asked how should i do it. I was told to email it here,
and that posting it in irc is not ok.
3) I mailed the patch to the mailing list. I saw encoding problems.
4) I started a discussion about encoding problems and what did i do wrong,
giving the source of the patch and a screenshot of what the «git
send-email» sent.
5) The patch was applied.

:-)

2012/10/4 Dave Reisner <d at falconindy.com>

> On Thu, Oct 04, 2012 at 03:00:07AM +0400, Сковорода Никита Андреевич wrote:
> > From: Сковорода ? ?икита Андре евич <chalkerx at gmail.com>
> >
> >
> > Signed-off-by: Сковорода Никита Андреевич <chalkerx at gmail.com>
> > ---
>
> This patch was already applied when you posted it in IRC:
>
> http://cgit.freedesktop.org/systemd/systemd/commit/?id=2f1bb51336e02
>
> >  man/systemd-inhibit.xml | 3 ++-
> >  src/login/inhibit.c     | 3 ++-
> >  2 files changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/man/systemd-inhibit.xml b/man/systemd-inhibit.xml
> > index f3ccee3..1218836 100644
> > --- a/man/systemd-inhibit.xml
> > +++ b/man/systemd-inhibit.xml
> > @@ -108,7 +108,8 @@
> >                                  <literal>sleep</literal>,
> >                                  <literal>idle</literal>,
> >                                  <literal>handle-power-key</literal>,
> > -                                <literal>handle-sleep-key</literal>,
> > +                                <literal>handle-suspend-key</literal>,
> > +                                <literal>handle-hibernate-key</literal>,
> >                                  <literal>handle-lid-switch</literal>,
> >                                  for inhibiting
> >                                  reboot/power-off/halt/kexec,
> > diff --git a/src/login/inhibit.c b/src/login/inhibit.c
> > index 28ce553..4735df7 100644
> > --- a/src/login/inhibit.c
> > +++ b/src/login/inhibit.c
> > @@ -162,7 +162,8 @@ static int help(void) {
> >                 "     --version            Show package version\n"
> >                 "     --what=WHAT          Operations to inhibit, colon
> separated list of:\n"
> >                 "                          shutdown, sleep, idle,
> handle-power-key,\n"
> > -               "                          handle-sleep-key,
> handle-lid-switch\n"
> > +               "                          handle-suspend-key,
> handle-hibernate-key,\n"
> > +               "                          handle-lid-switch\n"
> >                 "     --who=STRING         A descriptive string who is
> inhibiting\n"
> >                 "     --why=STRING         A descriptive string why is
> being inhibited\n"
> >                 "     --mode=MODE          One of block or delay\n"
> > --
> > 1.7.12.2
> >
>
> > _______________________________________________
> > systemd-devel mailing list
> > systemd-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20121004/b474bb21/attachment-0001.html>


More information about the systemd-devel mailing list