summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_disk_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-07 00:10:59 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-07 00:10:59 +0200
commit334d3cb564c72bd430a17c6e6f01aeb488fb191c (patch)
tree52b4e97d21f24e55b377e5f1e1a11e4e3c22ed3b /src/tools/dcpomatic_disk_writer.cc
parente28f10cd045d3a420689c9aafc5abaa64d35fa92 (diff)
Check that we have a connection to the disk writer before starting to use it in earnest.
Diffstat (limited to 'src/tools/dcpomatic_disk_writer.cc')
-rw-r--r--src/tools/dcpomatic_disk_writer.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_disk_writer.cc b/src/tools/dcpomatic_disk_writer.cc
index 2c3753e57..a2788e18b 100644
--- a/src/tools/dcpomatic_disk_writer.cc
+++ b/src/tools/dcpomatic_disk_writer.cc
@@ -460,6 +460,8 @@ try
if (*s == DISK_WRITER_QUIT) {
exit (EXIT_SUCCESS);
+ } else if (*s == DISK_WRITER_PING) {
+ nanomsg->send(DISK_WRITER_PONG "\n", LONG_TIMEOUT);
} else if (*s == DISK_WRITER_UNMOUNT) {
/* XXX: should do Linux polkit stuff here */
optional<string> xml_head = nanomsg->receive (LONG_TIMEOUT);