2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Avoid to create zombie process when commands specified in
	--on-download-* options are executed. Tested on Linux 2.6, Mac OS
	X and NetBSD.	
	* src/main.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-07-16 13:07:29 +00:00
parent 9c62df8038
commit 757e758fa1
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Avoid to create zombie process when commands specified in
--on-download-* options are executed. Tested on Linux 2.6, Mac OS
X and NetBSD.
* src/main.cc
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed typo

View File

@ -212,6 +212,9 @@ downloadresultcode::RESULT main(int argc, char* argv[])
#ifdef SIGPIPE
Util::setGlobalSignalHandler(SIGPIPE, SIG_IGN, 0);
#endif
#ifdef SIGCHLD
Util::setGlobalSignalHandler(SIGCHLD, SIG_IGN, 0);
#endif // SIGCHILD
std::deque<SharedHandle<RequestGroup> > requestGroups;
#ifdef ENABLE_BITTORRENT
if(!op->blank(PREF_TORRENT_FILE)) {