public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: kerolasa@gmail.com
Cc: Damien Wyart <damien.wyart@gmail.com>,
	util-linux <util-linux@vger.kernel.org>
Subject: Re: forking in setsid
Date: Tue, 9 Jul 2013 11:36:57 +0200	[thread overview]
Message-ID: <20130709093657.GC24716@x2.net.home> (raw)
In-Reply-To: <CAG27Bk0tULzTdYpPPZz3C9Z2XZk9mTHbV=UCkMJEW+6XbRFZvw@mail.gmail.com>

On Wed, Jun 19, 2013 at 05:00:09PM +0100, Sami Kerola wrote:
> From c2deb80ef6feb7039a0554e4b8a8272e59cb1a87 Mon Sep 17 00:00:00 2001
> From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
> Date: Wed, 20 Aug 2008 12:00:00 +0100
> Subject: [PATCH] setsid: add an option to wait child return value
> Organization: Lastminute.com

it would be nice to have usable patch, ideally sent by git-send-email.

    Karel

> - fputs(_(" -c, --ctty     set the controlling terminal to the current one\n"),
> - out);
> + fputs(_(" -c, --ctty     set the controlling terminal to the current
> one\n"), out);
> + fputs(_(" -w, --wait     wait program to exit, and use the same
> return\n"), out);

 invalid patch formatting

> + if (wait(&status) != pid)
> + err(EXIT_FAILURE, "wait");
> + if (WIFEXITED(status))
> + return WEXITSTATUS(status);
> + err(status, _("child %d did not exit normally"), pid);

 useless formatting...

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  parent reply	other threads:[~2013-07-09  9:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19 14:53 forking in setsid Damien Wyart
2013-06-19 16:00 ` Sami Kerola
2013-06-19 17:16   ` Damien Wyart
2013-07-09  9:36   ` Karel Zak [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-07-09 19:08 Daniel Kahn Gillmor

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=20130709093657.GC24716@x2.net.home \
    --to=kzak@redhat.com \
    --cc=damien.wyart@gmail.com \
    --cc=kerolasa@gmail.com \
    --cc=util-linux@vger.kernel.org \
    /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