/*
- Copyright (C) 1998-99 Paul Barton-Davis
+ Copyright (C) 1998-99 Paul Barton-Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <cstdlib>
#include <signal.h>
-#include <iostream>
#include <string>
-#include <pbd/transmitter.h>
-#include <pbd/error.h>
+#include "pbd/transmitter.h"
+#include "pbd/error.h"
using std::string;
using std::ios;
send = 0;
break;
}
-}
+}
void
Transmitter::deliver ()
/* NOTE: this is just a default action for a Transmitter or a
derived class. Any class can override this to produce some
- other action when deliver() is called.
+ other action when deliver() is called.
*/
*this << '\0';
seekg (0, ios::beg);
/* do the right thing if this should not return */
-
+
if (does_not_return()) {
+#ifndef PLATFORM_WINDOWS
+// TODO !!!! Commented out temporarily (for Windows)
sigset_t mask;
-
+
sigemptyset (&mask);
sigsuspend (&mask);
/*NOTREACHED*/
exit (1);
- }
+/* JE - From what I can tell, the above code suspends
+ * program execution until (any) signal occurs. Not
+ * sure at the moment what this achieves, unless it
+ * provides some time for the user to see the message.
+ */
+#endif
+ }
}
bool
extern "C" {
void pbd_c_error (const char *str)
-
+
{
PBD::error << str << endmsg;
}