diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-04-20 08:36:01 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-04-20 08:36:01 +0000 |
commit | 4bdfd3fbeab33036af17ac4e5edbe0d998486d0c (patch) | |
tree | 5224e54163f705344b2e8df06a9b4635e9a28556 /usr.bin/cvs/util.c | |
parent | f153635f80e6557c158cca652fb9d39fc604ac98 (diff) |
- correct signal handling and process waiting for the EDITOR support code
(From ray's code in sendbug(1))
- nuke cvs_exec() as it is not used anymore
Prompted by deraadt@ a few weeks ago.
OK ray@.
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r-- | usr.bin/cvs/util.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index 3848daec7f7..3603f718e5f 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.107 2007/02/22 06:42:09 otto Exp $ */ +/* $OpenBSD: util.c,v 1.108 2007/04/20 08:36:00 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org> @@ -370,30 +370,6 @@ cvs_freeargv(char **argv, int argc) } /* - * cvs_exec() - */ -int -cvs_exec(int argc, char **argv) -{ - int ret; - pid_t pid; - - if ((pid = fork()) == -1) { - cvs_log(LP_ERR, "failed to fork"); - return (-1); - } else if (pid == 0) { - execvp(argv[0], argv); - cvs_log(LP_ERR, "failed to exec %s", argv[0]); - exit(1); - } - - if (waitpid(pid, &ret, 0) == -1) - cvs_log(LP_ERR, "failed to waitpid"); - - return (ret); -} - -/* * cvs_chdir() * * Change to directory <path>. |