Commit 83e85d51 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(server_sleep): New request.

parent 9093c482
/*
* $Id: debug.c,v 1.11 2003/08/23 16:38:17 ceder Exp $
* $Id: debug.c,v 1.12 2003/08/25 17:13:27 ceder Exp $
* Copyright (C) 1991, 1993-1996, 1999, 2001-2003 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -38,6 +38,7 @@
# endif
#endif
#include <setjmp.h>
#include <unistd.h>
#include "timewrap.h"
#include "misc-types.h"
......@@ -197,6 +198,14 @@ backdate_comment_link(Text_no parent,
return FAILURE;
}
extern Success
server_sleep(int seconds)
{
CHK_CONNECTION(FAILURE);
sleep(seconds);
return OK;
}
/* start_garb is in text-garb.c since it needs access to static variables */
#endif
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