public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH COMMITTED] sunrpc: In key_call_keyenvoy, use int status instead of union wait
@ 2016-03-08  9:35 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2016-03-08  9:35 UTC (permalink / raw)
  To: GNU C Library

[-- Attachment #1: Type: text/plain, Size: 48 bytes --]

Compile-tested as suggested by Roland.

Florian

[-- Attachment #2: 0001-sunrpc-In-key_call_keyenvoy-use-int-status-instead-o.patch --]
[-- Type: text/x-patch, Size: 731 bytes --]

2016-03-08  Florian Weimer  <fweimer@redhat.com>

	* sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
	union wait.  Report any non-zero exit status as error.

diff --git a/sunrpc/key_call.c b/sunrpc/key_call.c
index 7ecf6fb..a0d9a2a 100644
--- a/sunrpc/key_call.c
+++ b/sunrpc/key_call.c
@@ -304,7 +304,7 @@ key_call_keyenvoy (u_long proc, xdrproc_t xdr_arg, char *arg,
   FILE *fargs;
   FILE *frslt;
   sigset_t oldmask, mask;
-  union wait status;
+  int status;
   int pid;
   int success;
   uid_t ruid;
@@ -362,7 +362,7 @@ key_call_keyenvoy (u_long proc, xdrproc_t xdr_arg, char *arg,
 	success = 0;
     }
   else
-    if (status.w_retcode)
+    if (status != 0)
       {
 	debug ("wait4 1");
 	success = 0;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-08  9:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-08  9:35 [PATCH COMMITTED] sunrpc: In key_call_keyenvoy, use int status instead of union wait Florian Weimer

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 read-only IMAP folder(s) and NNTP newsgroup(s).