-/* $OpenBSD: wwspawn.c,v 1.3 1996/06/26 05:43:52 deraadt Exp $ */
+/* $OpenBSD: wwspawn.c,v 1.4 1996/12/06 02:28:58 deraadt Exp $ */
/* $NetBSD: wwspawn.c,v 1.4 1995/12/21 08:39:57 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwspawn.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwspawn.c,v 1.3 1996/06/26 05:43:52 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwspawn.c,v 1.4 1996/12/06 02:28:58 deraadt Exp $";
#endif
#endif /* not lint */
#include "ww.h"
#include <sys/signal.h>
+#include <stdio.h>
/*
* There is a dead lock with vfork and closing of pseudo-ports.
erred = 1;
_exit(1);
default:
+ (void) wait(NULL);
if (erred) {
wwerrno = WWE_SYS;
ret = -1;
-/* $OpenBSD: wwterminfo.c,v 1.2 1996/06/26 05:43:53 deraadt Exp $ */
+/* $OpenBSD: wwterminfo.c,v 1.3 1996/12/06 02:29:00 deraadt Exp $ */
/*
* Copyright (c) 1982, 1993
return -1;
case 0:
execl(_PATH_RM, _PATH_RM, "-rf", wwterminfopath, 0);
- return -1;
+ _exit(1);
default:
+ (void)wait(NULL);
return 0;
}
}