summaryrefslogtreecommitdiff
path: root/usr/src/lib/libmail/common/systemvp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libmail/common/systemvp.c')
-rw-r--r--usr/src/lib/libmail/common/systemvp.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/usr/src/lib/libmail/common/systemvp.c b/usr/src/lib/libmail/common/systemvp.c
index 4fb23af800..81f97e9c26 100644
--- a/usr/src/lib/libmail/common/systemvp.c
+++ b/usr/src/lib/libmail/common/systemvp.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,14 +19,14 @@
* 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 */
+
/*
* These routines are based on the standard UNIX stdio popen/pclose
* routines. This version takes an argv[][] argument instead of a string
@@ -40,9 +39,7 @@
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-/*LINTLIBRARY*/
-#include "c_synonyms.h"
#include <sys/types.h>
#include "libmail.h"
#include <signal.h>
@@ -66,9 +63,9 @@ systemvp(char *file, char **argv, int resetid)
}
istat = signal(SIGINT, SIG_IGN);
qstat = signal(SIGQUIT, SIG_IGN);
- do
+ do {
w = wait(&status);
- while (w != pid && w != (pid_t)-1);
+ } while (w != pid && w != (pid_t)-1);
(void) signal(SIGINT, istat);
(void) signal(SIGQUIT, qstat);
return ((w == (pid_t)-1)? w: (pid_t)status);