aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/bltin/bltin.h
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2014-03-15 14:58:48 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2014-03-15 14:58:48 +0000
commit76961687061bd93c0158c29f839c064613aee364 (patch)
treef8932801a36ad6f4a3bffeaa6e0fb25e14c758c1 /bin/sh/bltin/bltin.h
parenta5bf6b6d215821f4317ab62aa4e8add5353a3fda (diff)
downloadsrc-76961687061bd93c0158c29f839c064613aee364.tar.gz
src-76961687061bd93c0158c29f839c064613aee364.zip
sh: Allow kill %job on jobs started without job control.
When killing a %job started without job control, kill all processes in it. As with process groups and zombies, if any process in the job can be killed or has already terminated, the command is successful. This also fixes occasional failures of the builtins/kill1.0 test.
Notes
Notes: svn path=/head/; revision=263206
Diffstat (limited to 'bin/sh/bltin/bltin.h')
-rw-r--r--bin/sh/bltin/bltin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/bltin/bltin.h b/bin/sh/bltin/bltin.h
index 0143b6e27aca..bbf55f1ae79f 100644
--- a/bin/sh/bltin/bltin.h
+++ b/bin/sh/bltin/bltin.h
@@ -74,6 +74,6 @@
pointer stalloc(int);
void error(const char *, ...) __printf0like(1, 2);
-pid_t getjobpgrp(char *);
+int killjob(const char *, int);
extern char *commandname;