aboutsummaryrefslogtreecommitdiff
path: root/src/clef
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-09-09 05:24:24 +0000
committerdos-reis <gdr@axiomatics.org>2008-09-09 05:24:24 +0000
commitc6dc46b33cae5230dcbdf024da95532ea0cd1891 (patch)
treebec45d8eafffbf2c1ff769bfed962bf1f86b4567 /src/clef
parentc0f80aca887462749a7cdc4fcacc579ee59aa850 (diff)
downloadopen-axiom-c6dc46b33cae5230dcbdf024da95532ea0cd1891.tar.gz
* lib/sockio-c.c (openaxiom_sleep): Move to open-axiom.h.
* clef/edible.c: Include "open-axiom.h". Use openaxiom_sleep, not sleep. * graph/view2D/viewport2D.c: Likewise. * graph/viewAlone/spoon2D.c: Likewise. * graph/viewAlone/spoonComp.c: Likewise. * graph/viewman/fun2D.c: Likewise. * graph/viewman/fun3D.c: Likewise. * hyper/spadint.c: Likewise. * sman/session.c: Likewise. * sman/sman.c: Likewise.
Diffstat (limited to 'src/clef')
-rw-r--r--src/clef/edible.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/clef/edible.c b/src/clef/edible.c
index a2b87863..fb5494e6 100644
--- a/src/clef/edible.c
+++ b/src/clef/edible.c
@@ -33,8 +33,6 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "openaxiom-c-macros.h"
-
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
@@ -46,7 +44,7 @@
#include <errno.h>
#include <signal.h>
-
+#include "open-axiom.h"
#include "sockio.h"
#include "edible.h"
#include "com.h"
@@ -398,7 +396,7 @@ terminate_handler(int sig)
sigfile = open(sigbuff, O_RDWR | O_APPEND);
write(sigfile, "Terminate Handler\n", strlen("Terminate Handler\n") + 1);
close(sigfile);
- sleep(1);
+ openaxiom_sleep(1);
#endif
kill(child_pid, SIGTERM);
/* fix the terminal, and exit */
@@ -420,7 +418,7 @@ interrupt_handler(int sig)
sigfile = open(sigbuff, O_RDWR | O_APPEND);
write(sigfile, "Interrupt Handler\n", strlen("Interrupt Handler\n") + 1);
close(sigfile);
- sleep(1);
+ openaxiom_sleep(1);
#endif
kill(child_pid, SIGINT);
}