Here's a copy of the email I sent to email@example.com:
Subject: [PATCH] Proper daemonization of vsftpd
From: Simon Perreault <firstname.lastname@example.org> (LQT Systems)
Date: 2005-06-15 16:17
I've found a bug in vsftpd when running in listen + background mode. This
command never returns:
vsftpd vsftpd.conf | cat
The cause is that vsftpd doesn't daemonize correctly. It should reopen its
standard file descriptors to /dev/null. See daemon(3).
The attached patch fixes that problem. Please consider applying.
Some Red Hat-specific stuff: Now that vsftpd daemonizes correctly, it would be
cleaner to use listen + background mode in the configuration file and use the
daemon() function in the init script instead of starting vsftpd with an
ampersand at the end of the line (yuck!).
Created attachment 117402 [details]
Patch that makes vsftpd daemonize correctly
Patch checked in. This is too big change for RHEL4 so the patch goes to rawhide.
Also vsftpd initscript got changed in previous release so the vsftpd is started
as daemon in background by default.
Using a daemon() function is a duplicate of the bug #158714.