chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:04 +0000 (07:50 +0200)
commit9de28371864742c2c4898a54c929781668ceba90
tree9038b1f218f4c08d3ff59b9b6e5b4ab01664d963
parent583f695baa1e925697d1eb4b4d9f4bc818c32452
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