aboutsummaryrefslogtreecommitdiff
path: root/src/sman
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/sman
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/sman')
-rw-r--r--src/sman/session.c5
-rw-r--r--src/sman/sman.c10
2 files changed, 7 insertions, 8 deletions
diff --git a/src/sman/session.c b/src/sman/session.c
index 4addf254..7cbc375a 100644
--- a/src/sman/session.c
+++ b/src/sman/session.c
@@ -37,12 +37,13 @@
/* #define DEBUG */
#define _SESSION_C
-#include "openaxiom-c-macros.h"
#include <stdlib.h>
#include <sys/time.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
+
+#include "open-axiom.h"
#include "sockio.h"
#include "com.h"
#include "bsdsignal.h"
@@ -465,7 +466,7 @@ main(void)
#ifdef DEBUG2
/* delay for attaching with debugger before interesting things happen */
- sleep(30);
+ openaxiom_sleep(30);
#endif
/* spad_server connects to Lisp server socket
diff --git a/src/sman/sman.c b/src/sman/sman.c
index c7b5aa62..76c6d59e 100644
--- a/src/sman/sman.c
+++ b/src/sman/sman.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 <string.h>
@@ -47,7 +45,7 @@
#include <sys/wait.h>
#include <signal.h>
-
+#include "open-axiom.h"
#include "sockio.h"
#include "com.h"
#include "bsdsignal.h"
@@ -735,7 +733,7 @@ monitor_children(void)
if (dead_baby == -1 && death_signal) {
kill_all_children();
clean_up_sockets();
- sleep(2);
+ openaxiom_sleep(2);
exit(0);
}
@@ -754,7 +752,7 @@ monitor_children(void)
case Die:
kill_all_children();
clean_up_sockets();
- sleep(2);
+ openaxiom_sleep(2);
exit(0);
case NadaDelShitsky:
break;
@@ -789,7 +787,7 @@ main(int argc, char *argv[],char *envp[])
if (start_local_spadclient) start_the_local_spadclient();
if (start_ht) start_the_hypertex();
if (start_graphics) start_the_graphics();
- sleep(1);
+ openaxiom_sleep(1);
if (fork_you(Die) != NULL) {
sman_catch_signals();