Logo Search packages:      
Sourcecode: remotefs version File versions

signals_client.c

/*
remotefs file system
See the file AUTHORS for copyright information.
      
This program can be distributed under the terms of the GNU GPL.
See the file LICENSE.
*/

#include <signal.h>
#include <stdlib.h>

#include "config.h"
#include "signals_client.h"
#include "sendrecv.h"
#include "signals.h"
#include "operations.h"

static void signal_handler_client(int signal, siginfo_t *sig_info, void *ucontext_t_casted)
{
      switch (signal)
      {
      case SIGTERM:
            rfs_destroy(NULL);
            exit(0);
      }
}

void install_signal_handlers_client()
{
      install_signal_handler(SIGTERM, signal_handler_client);
}

Generated by  Doxygen 1.6.0   Back to index