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@xxxxxxxxxxxxxxxxx> > 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@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html