summaryrefslogtreecommitdiff
path: root/bin/ksh/jobs.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-12-18 22:11:44 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-12-18 22:11:44 +0000
commit8912b2a077b7b75bd51cc89010a16926b3dd4be0 (patch)
treee5daa9cbe723432ea34f5fc99cea9473058e0671 /bin/ksh/jobs.c
parentfbae7873aaba3bccd2740f827f35b547bff4d11c (diff)
Flags set in signal handlers should be volatile sig_atomic_t
Diffstat (limited to 'bin/ksh/jobs.c')
-rw-r--r--bin/ksh/jobs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/jobs.c b/bin/ksh/jobs.c
index ee76a1c0adc..ea64017be25 100644
--- a/bin/ksh/jobs.c
+++ b/bin/ksh/jobs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jobs.c,v 1.24 2004/12/18 21:04:52 millert Exp $ */
+/* $OpenBSD: jobs.c,v 1.25 2004/12/18 22:11:43 millert Exp $ */
/*
* Process and job control
@@ -114,7 +114,7 @@ static int child_max; /* CHILD_MAX */
/* held_sigchld is set if sigchld occurs before a job is completely started */
-static int held_sigchld;
+static volatile sig_atomic_t held_sigchld;
#ifdef JOBS
static struct shf *shl_j;