Daemonize the forked kwalletd process.

Review Request #125190 - Created Sept. 12, 2015 and submitted

Information
Xuetian Weng
kwallet-pam
master
Reviewers
plasma
afiestas, mklapetek

For example, if desktop is started by sddm,
- for kwalletd5, it will be a subprocess of sddm-helper.
- for kwalletd, there will be zombie subprocess of sddm-helper.

Here we make use of the old trick to fork twice and collect the status of intermediate process with waitpid to avoid zombie process. --nofork is used for kwalletd case to avoid it fork yet another process.

No more zombie process, kwalletd and kwalletd5 become subprocess of pid 1.

Xuetian Weng
Xuetian Weng
Àlex Fiestas
Xuetian Weng
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 115ad562baf0cb0534876cbcb705fd9190e290b4 by Weng Xuetian to branch master.
Loading...