diff options
author | Michael Adam <obnox@samba.org> | 2009-10-25 20:25:06 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-10-25 23:33:37 +0100 |
commit | 3474de599fa9beff3931e7f655156acefff3f655 (patch) | |
tree | 9797a1e524ad9ed5c7c6e0914f2ac766d023f5fb /src/child.c | |
parent | 1b4d130cf5291a174f0e2af26573b890e535f5f7 (diff) |
Change child_kill_children() to take the signal as an argument.
Diffstat (limited to 'src/child.c')
-rw-r--r-- | src/child.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/child.c b/src/child.c index 0a79d7e..b638b99 100644 --- a/src/child.c +++ b/src/child.c @@ -440,13 +440,13 @@ void child_main_loop (void) /* * Go through all the non-empty children and cancel them. */ -void child_kill_children (void) +void child_kill_children (int sig) { unsigned int i; for (i = 0; i != child_config.maxclients; i++) { if (child_ptr[i].status != T_EMPTY) - kill (child_ptr[i].tid, SIGTERM); + kill (child_ptr[i].tid, sig); } } |