Enlightenment CVS committal

Author  : tsauerbeck
Project : misc
Module  : embrace

Dir     : misc/embrace/src


Modified Files:
        embrace.c 


Log Message:
embrace_signal_get() now always returns -1 indicating failure in case the OS doesn't 
know about realtime signals
===================================================================
RCS file: /cvsroot/enlightenment/misc/embrace/src/embrace.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- embrace.c   2 May 2004 21:07:40 -0000       1.18
+++ embrace.c   5 May 2004 18:33:35 -0000       1.19
@@ -1,5 +1,5 @@
 /*
- * $Id: embrace.c,v 1.18 2004/05/02 21:07:40 rbdpngn Exp $
+ * $Id: embrace.c,v 1.19 2004/05/05 18:33:35 tsauerbeck Exp $
  *
  * Copyright (C) 2004 Embrace project.
  *
@@ -40,7 +40,9 @@
 #include "mailbox.h"
 #include "embrace_plugin.h"
 
+#ifdef SIGRTMIN
 static int last_signal = 0;
+#endif
 
 /**
  * Copies one string to another, but '~' is expanded.
@@ -668,7 +670,7 @@
 {
        assert (e);
 
-#ifdef USE_DNOTIFY
+#ifdef SIGRTMIN
        last_signal = SIGRTMIN;
 #endif
 
@@ -731,10 +733,12 @@
 
 int embrace_signal_get ()
 {
-#ifdef USE_DNOTIFY
+#ifdef SIGRTMIN
        assert (last_signal >= SIGRTMIN);
        assert (last_signal < SIGRTMAX);
-#endif
 
        return ++last_signal;
+#else
+       return -1;
+#endif
 }




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to