From 5119c8856a3842440555196be05b8d1a4375f865 Mon Sep 17 00:00:00 2001 From: Mark Grondona <mgrondona@llnl.gov> Date: Fri, 17 Oct 2003 18:15:44 +0000 Subject: [PATCH] o Remove unecessary calls to pthread_kill(thd, SIGTERM) on srun exit. This may have been causing problems for the pthread cleanup code. --- src/srun/srun.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/srun/srun.c b/src/srun/srun.c index a17956cecd5..0d40bd24743 100644 --- a/src/srun/srun.c +++ b/src/srun/srun.c @@ -245,14 +245,12 @@ int main(int ac, char **av) /* Tell slurmctld that job is done */ job_destroy(job, 0); - /* kill msg server thread */ - pthread_kill(job->jtid, SIGTERM); - - /* kill signal thread */ - /* pthread_kill(job->sigid, SIGTERM); */ - log_fini(); + /* + * Let exit() clean up remaining threads. + */ + exit(job_rc(job)); } -- GitLab