Problem with amtape "hanging" when forked from Java

Robert Heller <[email protected]>
Newsgroups gmane.comp.archivers.amanda.user
Organization Deepwoods Software
Message-ID <[email protected]>
For some unfathomably reason amtape "hangs" when forked from a Java program.

I've written a Java program that goes through vaulted tapes and forks amtape 
(using Runtime.getRuntime().exec(()), and when a non-existant tape label is 
asked for, amtape "hangs".  I cannot figure out why or how to get amtape to 
just exit with an error (which I can then handle).

This is with Amanda 3.5.1 on a Ubuntu 18.04 system.

(The Java version is OpenJDK 11.0.13, in case that matters.)

-- 
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
[email protected]       -- Webhosting Services
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.