process-util: make our freeze() routine do something useful
authorMichal Sekletar <msekleta@redhat.com>
Fri, 12 Jan 2018 12:05:48 +0000 (13:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 12 Jan 2018 16:50:02 +0000 (17:50 +0100)
commit8647283e453e4039029e2b21270241fa4010b3d8
tree890f6271951adbef02cca04b8652d41995970d20
parent47e5995a38c68d21604c67c1eb1231f26ea051e9
process-util: make our freeze() routine do something useful

When we crash we freeze() our-self (or possibly we reboot the machine if
that is configured). However, calling pause() is very unhelpful thing to
do. We should at least continue to do what init systems being doing
since 70's and that is reaping zombies. Otherwise zombies start to
accumulate on the system which is a very bad thing. As that can prevent
admin from taking manual steps to reboot the machine in somewhat
graceful manner (e.g. manually stopping services, unmounting data
volumes  and calling reboot -f).

Fixes #7783
src/basic/process-util.c