There's no need for killpg(). We can use kill() instead.
[mmh] / man / folders.man1
1 .so man1/folder.1