summaryrefslogtreecommitdiff
path: root/usr/src/lib/libmail/common/popenvp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libmail/common/popenvp.c')
-rw-r--r--usr/src/lib/libmail/common/popenvp.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/usr/src/lib/libmail/common/popenvp.c b/usr/src/lib/libmail/common/popenvp.c
index 632c94de0f..a8c6faab76 100644
--- a/usr/src/lib/libmail/common/popenvp.c
+++ b/usr/src/lib/libmail/common/popenvp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,16 +19,15 @@
* CDDL HEADER END
*/
-/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-/*LINTLIBRARY*/
/*
* These routines are based on the standard UNIX stdio popen/pclose
@@ -42,7 +40,6 @@
* quotes, etc.
*/
-#include "c_synonyms.h"
#include <sys/types.h>
#include <assert.h>
#include <string.h>
@@ -113,9 +110,9 @@ pclosevp(FILE *ptr)
istat = signal(SIGINT, SIG_IGN);
qstat = signal(SIGQUIT, SIG_IGN);
hstat = signal(SIGHUP, SIG_IGN);
- do
+ do {
r = wait(&status);
- while (r != popen_pid[f] && r != (pid_t)-1);
+ } while (r != popen_pid[f] && r != (pid_t)-1);
if (r == (pid_t)-1)
status = -1;