Commit db1c22bc authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(restart_syscalls_on_intr): New function.

(intr_syscalls_on_intr): New function.
parent 3514ecbc
/*
* $Id: sigflags.h,v 1.2 1999/05/24 09:34:39 ceder Exp $
* $Id: sigflags.h,v 1.3 2002/10/26 11:58:37 ceder Exp $
* Copyright (C) 1991, 1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -24,6 +24,20 @@
*/
/* Set up signal handlers without SA_RESTART, so that syscalls can
return with EINTR. This is done before calls to select() with a
long timeout; make sure to restore the SA_RESTART with
restart_syscalls_on_intr() as soon as possible, since most of the
server isn't prepared to handle the EINTR error. */
void intr_syscalls_on_intr(void);
/* Set up signal handlers with SA_RESTART. This is the normal mode of
operation for lyskomd. */
void restart_syscalls_on_intr(void);
/* The go_and_die flag is set by SIGHUP and shutdown_kom. It causes
lyskomd to be shut down in an orderly fashion. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment