Browse code

- sun compile fixes - kill_sem.sh sun update

Andrei Pelinescu-Onciul authored on 15/02/2002 18:12:01
Showing 4 changed files
... ...
@@ -77,7 +77,7 @@ ifeq ($(ARCH), i386)
77 77
 endif
78 78
 
79 79
 ifeq ($(ARCH), sparc64)
80
-	DEFS+= -DFAST_LOCK
80
+#	DEFS+= -DFAST_LOCK
81 81
 endif
82 82
 
83 83
 
... ...
@@ -139,7 +139,7 @@ ifeq  ($(OS), SunOS)
139 139
 		MOD_LDFLAGS=-g -G
140 140
 	endif
141 141
 	ifeq ($(ARCH), sparc64)
142
-#		CFLAGS+= -mv8 -Wa,-xarch=v8plus
142
+		CFLAGS+= -mv8 -Wa,-xarch=v8plus
143 143
 	endif
144 144
 
145 145
 YACC=yacc
... ...
@@ -1,4 +1,20 @@
1
-#!/bin/sh
1
+#!/bin/bash
2 2
 
3
-ipcrm sem `cat /proc/sysvipc/sem | awk '{ print $2; }'`
4
-ipcrm shm `cat /proc/sysvipc/shm | awk '{ print $2; }'` 
3
+OS=`uname -s`
4
+echo $OS
5
+if [ "$OS"  == "Linux" ] 
6
+then
7
+	ipcrm sem `cat /proc/sysvipc/sem | awk '{ print $2; }'`
8
+	ipcrm shm `cat /proc/sysvipc/shm | awk '{ print $2; }'` 
9
+elif [ "$OS" == "SunOS" ]
10
+then	
11
+	whoami=`whoami`
12
+	for r in `ipcs|grep ${whoami}| awk '{ print $2; }' `
13
+	do
14
+		echo "deleting semid $r"
15
+		ipcrm -s $r
16
+	done
17
+
18
+
19
+
20
+fi
... ...
@@ -18,9 +18,9 @@ check_via=no     # (cmd. line: -v)
18 18
 dns=off           # (cmd. line: -r)
19 19
 rev_dns=off      # (cmd. line: -R)
20 20
 #port=5070
21
-listen=10.0.0.179
21
+#listen=10.0.0.179
22 22
 #listen=127.0.0.1
23
-#listen=192.168.57.33
23
+listen=192.168.57.33
24 24
 loop_checks=0
25 25
 # for more info: sip_router -h
26 26
 
... ...
@@ -11,7 +11,7 @@
11 11
 debug=3          # debug level (cmd line: -dddddddddd)
12 12
 #fork=yes          # (cmd. line: -D)
13 13
 fork=yes
14
-#fork=no
14
+fork=no
15 15
 log_stderror=yes # (cmd line: -E)
16 16
 #log_stderror=no	# (cmd line: -E)
17 17
 
... ...
@@ -22,8 +22,8 @@ dns=on           # (cmd. line: -r)
22 22
 rev_dns=yes      # (cmd. line: -R)
23 23
 #port=5070
24 24
 #listen=127.0.0.1
25
-#listen=192.168.57.33
26
-listen=10.0.0.179
25
+listen=192.168.57.33
26
+#listen=10.0.0.179
27 27
 loop_checks=0
28 28
 # for more info: sip_router -h
29 29