aboutsummaryrefslogtreecommitdiffstats
path: root/builtins/wait.def
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/wait.def')
-rw-r--r--builtins/wait.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtins/wait.def b/builtins/wait.def
index 9eb66f6..22a92be 100644
--- a/builtins/wait.def
+++ b/builtins/wait.def
@@ -1,7 +1,7 @@
This file is wait.def, from which is created wait.c.
It implements the builtin "wait" in Bash.
-Copyright (C) 1987-2004 Free Software Foundation, Inc.
+Copyright (C) 1987-2005 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -150,7 +150,7 @@ wait_builtin (list)
BLOCK_CHILD (set, oset);
job = get_job_spec (list);
- if (job < 0 || job >= job_slots || !jobs[job])
+ if (INVALID_JOB (job))
{
if (job != DUP_JOB)
sh_badjob (list->word->word);