/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/askpass-fifo.c

  • Committer: Teddy Hogeborn
  • Date: 2009-08-30 02:49:46 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090830024946-bfr985x8kmrep11j
* plugins.d/mandos-client.c (signal_received): New.
  (handle_sigterm): Save signal received.
  (main): Also set handler for SIGINT and SIGHUP.  If exiting due to
          signal, re-raise signal received instead of returning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <iso646.h>             /* and */
30
30
#include <errno.h>              /* errno, EEXIST */
31
31
#include <stdio.h>              /* perror() */
32
 
#include <stdlib.h>             /* EXIT_FAILURE, NULL, size_t, free(),
 
32
#include <stdlib.h>             /* EXIT_FAILURE, NULL, size_t, free(), 
33
33
                                   realloc(), EXIT_SUCCESS */
34
34
#include <fcntl.h>              /* open(), O_RDONLY */
35
35
#include <unistd.h>             /* read(), close(), write(),