projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more meta-data placeholders for post-export command
[ardour.git]
/
libs
/
pbd
/
transmitter.cc
diff --git
a/libs/pbd/transmitter.cc
b/libs/pbd/transmitter.cc
index a172ac457db757768c29c8f90745822de293211d..fccb667b4888415413ef5d8f744a557a6ce1faf1 100644
(file)
--- a/
libs/pbd/transmitter.cc
+++ b/
libs/pbd/transmitter.cc
@@
-1,5
+1,5
@@
/*
/*
- 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
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
@@
-52,7
+52,7
@@
Transmitter::Transmitter (Channel c)
send = 0;
break;
}
send = 0;
break;
}
-}
+}
void
Transmitter::deliver ()
void
Transmitter::deliver ()
@@
-62,7
+62,7
@@
Transmitter::deliver ()
/* NOTE: this is just a default action for a Transmitter or a
derived class. Any class can override this to produce some
/* 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';
*/
*this << '\0';
@@
-82,17
+82,23
@@
Transmitter::deliver ()
seekg (0, ios::beg);
/* do the right thing if this should not return */
seekg (0, ios::beg);
/* do the right thing if this should not return */
-
+
if (does_not_return()) {
if (does_not_return()) {
-#ifndef WIN32
+#ifndef PLATFORM_WINDOWS
+// TODO !!!! Commented out temporarily (for Windows)
sigset_t mask;
sigset_t mask;
-
+
sigemptyset (&mask);
sigsuspend (&mask);
sigemptyset (&mask);
sigsuspend (&mask);
-#endif
/*NOTREACHED*/
exit (1);
/*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
}
bool
@@
-109,7
+115,7
@@
Transmitter::does_not_return ()
extern "C" {
void pbd_c_error (const char *str)
extern "C" {
void pbd_c_error (const char *str)
-
+
{
PBD::error << str << endmsg;
}
{
PBD::error << str << endmsg;
}