- corrected daemonize_plus patch - don't try kill parent when vsftpd isn't

daemonized
This commit is contained in:
Jiri Skala 2010-04-07 08:37:48 +00:00
parent 223f91ade2
commit e8950c5116

View File

@ -39,7 +39,7 @@ diff -up vsftpd-2.1.1/standalone.c.daemonize_plus vsftpd-2.1.1/standalone.c
{
die("could not bind listening IPv4 socket");
}
+ else
+ if (tunable_background) {
+ {
+ vsf_sysutil_kill(vsf_sysutil_getppid(), kVSFSysUtilSigUSR1);
+ }
@ -50,7 +50,7 @@ diff -up vsftpd-2.1.1/standalone.c.daemonize_plus vsftpd-2.1.1/standalone.c
{
die("could not bind listening IPv6 socket");
}
+ else
+ if (tunable_background) {
+ {
+ vsf_sysutil_kill(vsf_sysutil_getppid(), kVSFSysUtilSigUSR1);
+ }