Cannot kill stopped job - no job control in subprocess?
<p>I'm working with ash/dash and try to kill a subprocess - which doesn't seem to respond:</p>

<p><code>sh &amp;</code> opens a subprocess and <code>jobs</code> delivers <code>[1]+ Stopped (tty Input)    sh</code>.</p>

<p>But trying to kill this Job with <code>kill %1</code> or <code>kill 26672</code> doesn't work. <code>jobs</code> delivers <code>[1]+ Stopped (tty Input)    sh</code> again.</p>

<p>After putting the job to foreground with <code>fg</code> opens the shell for input. Neither <code>ctrl+c</code> nor <code>ctrl+z</code> are working but I can kill the process with <code>exit</code> or <code>kill -SIGKILL $$</code> respectively stop/suspend the process with <code>kill -STOP $$</code> (there is no <code>suspend</code>-command in ash).</p>

<p>On the other hand - doing this with i.e. <code>sleep 100</code> works fine till I <code>fg</code> and stop the process with <code>ctr+z</code>. Then I'm not able to <code>kill</code> this stopped job.</p>

<p>So what am I missing and what could be the solution to kill a stopped job? Do I have to deal with <code>set -m</code> and how?</p>

<p>Thanks in advance.</p>