chat.c (47540) | chat.c (47849) |
---|---|
1/*- 2 * Copyright (c) 1998 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1998 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $Id: chat.c,v 1.55 1999/05/08 11:06:18 brian Exp $ | 26 * $Id: chat.c,v 1.56 1999/05/27 09:50:10 brian Exp $ |
27 */ 28 29#include <sys/param.h> 30#include <netinet/in.h> 31#include <netinet/in_systm.h> 32#include <netinet/ip.h> 33#include <sys/un.h> 34 --- 643 unchanged lines hidden (view full) --- 678 pid_t pid; 679 int fids[2]; 680 char *argv[MAXARGS], *vector[MAXARGS], *startout, *endout; 681 int stat, nb, argc; 682 683 log_Printf(LogCHAT, "Exec: %s\n", command); 684 argc = MakeArgs(command, vector, VECSIZE(vector)); 685 command_Expand(argv, argc, (char const *const *)vector, | 27 */ 28 29#include <sys/param.h> 30#include <netinet/in.h> 31#include <netinet/in_systm.h> 32#include <netinet/ip.h> 33#include <sys/un.h> 34 --- 643 unchanged lines hidden (view full) --- 678 pid_t pid; 679 int fids[2]; 680 char *argv[MAXARGS], *vector[MAXARGS], *startout, *endout; 681 int stat, nb, argc; 682 683 log_Printf(LogCHAT, "Exec: %s\n", command); 684 argc = MakeArgs(command, vector, VECSIZE(vector)); 685 command_Expand(argv, argc, (char const *const *)vector, |
686 physical->dl->bundle, 0); | 686 physical->dl->bundle, 0, getpid()); |
687 688 if (pipe(fids) < 0) { 689 log_Printf(LogCHAT, "Unable to create pipe in ExecStr: %s\n", 690 strerror(errno)); 691 *out = '\0'; 692 return; 693 } 694 if ((pid = fork()) == 0) { --- 62 unchanged lines hidden --- | 687 688 if (pipe(fids) < 0) { 689 log_Printf(LogCHAT, "Unable to create pipe in ExecStr: %s\n", 690 strerror(errno)); 691 *out = '\0'; 692 return; 693 } 694 if ((pid = fork()) == 0) { --- 62 unchanged lines hidden --- |