Portable detached processes?

Help
Anonymous
2011-03-22
2013-06-12
  • rzo

    rzo - 2011-03-22

    hello,

    take a look at: org.rzo.yajsw.os package

    Process p = OperatingSystem.processManagerInstance().createProcess();
    p.setCommand(…)
    p.setPipeStreams(false, false)
    p.start()
    p.getPid();
    p.waitFor()
    p.getExitCode()

    It does no implement the different start types as JSW.

    The process is detached and on Posix systems demonized.

    Note: if you do not pipe the streams from the child process to the parent, the child process will hang when the parent stops consuming the streams.

    Hope this is what you need.

    • Ron
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks