UWSGI_ALARM is no more required

This commit is contained in:
Unbit
2013-02-15 12:26:45 +01:00
parent d397036e29
commit 5e02bc3c84
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -124,6 +124,15 @@ func RegisterSignal(signum int, who string, handler func(int)) bool {
return false
}
func Alarm(alarm string, msg string) {
a := C.CString(alarm)
defer C.free(unsafe.Pointer(a))
m := C.CString(msg)
defer C.free(unsafe.Pointer(m))
ml := len(msg)
C.uwsgi_alarm_trigger(a, m, C.size_t(ml))
}
// get an item from the cache
func CacheGet(key string) []byte {
if (C.uwsgi.caches) == nil {