『sh -cで呼び出したコマンドがbashだと孫プロセスにならないことがある』
http://www.songmu.jp/riji/entry/2018-12-19-dash-bash-exec.html
ksh では sleep が内部コマンドだから、そもそも sleep のプロセスが生えないね。
どのようなコマンドでも内部コマンドで実装されている可能性がある、と考えると単純なコマンド実行で特定のプロセスツリーが形成される事を想定してはいけないんだろうね。
senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.