mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Complete proper daemonization by closing std* descriptors.
This fixes install as well as /sbin/services does not hang anymore
This commit is contained in:
parent
288128d560
commit
29a8f74fad
@ -891,6 +891,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
/* new session */
|
/* new session */
|
||||||
setsid();
|
setsid();
|
||||||
|
/* close std* descriptors */
|
||||||
|
close(0);
|
||||||
|
close(1);
|
||||||
|
close(2);
|
||||||
|
|
||||||
/* fork again to make sure we completely detach from parent process */
|
/* fork again to make sure we completely detach from parent process */
|
||||||
pid = fork();
|
pid = fork();
|
||||||
|
Loading…
Reference in New Issue
Block a user