mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-07 11:31:01 +02:00
Modified the crash backup script to add options "disable" and "resume".
However, this has not been implemented as it has been observed that the use of itimer() has a restriction of one timer per process, which interferes with the three or more uses of the timer within magic. The timer method will have to be changed to use the POSIX timer_create() routine, before this will work properly.
This commit is contained in:
+9
-11
@@ -26,8 +26,17 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
||||
#include <signal.h>
|
||||
#include <unistd.h> /* for getpid() */
|
||||
#include <sys/time.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "tcltk/tclmagic.h"
|
||||
#include "utils/main.h"
|
||||
#include "utils/magic.h"
|
||||
#include "utils/magsgtty.h"
|
||||
#include "textio/textio.h"
|
||||
#include "utils/geometry.h"
|
||||
#include "utils/signals.h"
|
||||
#include "windows/windows.h"
|
||||
#include "graphics/graphics.h"
|
||||
|
||||
#ifndef SIGEMT
|
||||
#define SIGEMT 7 /* EMT instruction (SIGUNUSED) */
|
||||
@@ -57,17 +66,6 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "utils/magic.h"
|
||||
#include "utils/magsgtty.h"
|
||||
#include "textio/textio.h"
|
||||
#include "utils/geometry.h"
|
||||
#include "utils/signals.h"
|
||||
#include "windows/windows.h"
|
||||
#include "graphics/graphics.h"
|
||||
|
||||
|
||||
#ifndef FASYNC
|
||||
# define FASYNC 00100 /* kludge for SUN2s */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user