<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:tom@turelinckx.be" title="Tom Turelinckx <tom@turelinckx.be>"> <span class="fn">Tom Turelinckx</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Headless mode leaves zombie process"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=95843">bug 95843</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEEDINFO
           </td>
           <td>UNCONFIRMED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>1
           </td>
           <td>
                
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Headless mode leaves zombie process"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=95843#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Headless mode leaves zombie process"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=95843">bug 95843</a>
              from <span class="vcard"><a class="email" href="mailto:tom@turelinckx.be" title="Tom Turelinckx <tom@turelinckx.be>"> <span class="fn">Tom Turelinckx</span></a>
</span></b>
        <pre>This problem is still present in 5.4.0.3.

Starting in headless mode results in one soffice.bin process and one defunct
child process:

resin     2692     1  0 12:23 pts/4    00:00:01
/usr/lib/libreoffice/program/soffice.bin --headless
resin     2693  2692  0 12:23 pts/4    00:00:00 [soffice.bin] <defunct>

The defunct process has state code Z, which the ps man page describes as:

Z    defunct ("zombie") process, terminated but not reaped by its parent

Killing 2692 results in 2693 disappearing as well.

This child process also disappears when connecting to the headless instance.
For example:

/usr/lib/libreoffice/program/soffice.bin --headless
--accept="socket,host=localhost,port=8100;urp;StarOffice.ServiceMana
ger" &

resin     2851     1  0 12:44 pts/4    00:00:01
/usr/lib/libreoffice/program/soffice.bin --headless --accept=socket,host
resin     2852  2851  0 12:44 pts/4    00:00:00 [soffice.bin] <defunct>

Once JODConverter connects to port 8100, process 2852 disappears. Subsequently
disconnecting from the instance and connecting again does NOT result in any new
defunct child processes. The headless instance works fine, functionality-wise.

We're typically using a command-line like this to start in headless mode:

/usr/lib/libreoffice/program/soffice.bin --headless --nologo --nodefault
--norestore --nocrashreport --nolockcheck --nof
irststartwizard
--accept="socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"
"-env:UserInstallation=file:///
home/resin/.ooinst0" &

None of those additional parameters has any impact on this problem: the
behavior remains the same.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>