process.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef TINC_PROCESS_H
  2. #define TINC_PROCESS_H
  3. /*
  4. process.h -- header file for process.c
  5. Copyright (C) 1999-2005 Ivo Timmermans,
  6. 2000-2006 Guus Sliepen <guus@tinc-vpn.org>
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License along
  16. with this program; if not, write to the Free Software Foundation, Inc.,
  17. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. */
  19. extern bool do_detach;
  20. extern bool sighup;
  21. extern bool sigalrm;
  22. extern void setup_signals(void);
  23. extern bool execute_script(const char *name, char **envp);
  24. extern bool detach(void);
  25. extern bool kill_other(int signal);
  26. #ifdef HAVE_MINGW
  27. extern bool init_service(void);
  28. #endif
  29. #endif