X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=2088c8b4de2947c94c238b41a471c2ecb89914d5;hp=b03be8775d9f4e12841cb8353639dd9f70725a1f;hb=7f08e8b0eb9570f1eb787dbb4e10d56585b36bbf;hpb=a61e862450dc1e74394bf5bbf7002d9947f98d31 diff --git a/send_common.c b/send_common.c index b03be877..2088c8b4 100644 --- a/send_common.c +++ b/send_common.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2005 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2005 Andre Noll , see file COPYING. */ /** \file send_common.c Functions used by more than one paraslash sender. */ @@ -78,8 +74,10 @@ void shutdown_client(struct sender_client *sc, struct sender_status *ss) { PARA_INFO_LOG("shutting down %s on fd %d\n", sc->name, sc->fd); free(sc->name); - close(sc->fd); - del_close_on_fork_list(sc->fd); + if (!process_is_command_handler()) { + close(sc->fd); + del_close_on_fork_list(sc->fd); + } cq_destroy(sc->cq); list_del(&sc->node); free(sc->private_data);