Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141328 - ctorrent will exit with statuscode 0 on STRG-C
Summary: ctorrent will exit with statuscode 0 on STRG-C
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://www.rahul.net/dholmes/ctorrent/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-21 13:11 UTC by Bjoern Olausson
Modified: 2006-07-23 17:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjoern Olausson 2006-07-21 13:11:16 UTC
It is quite confuising if ctorrent exits with errorcode 0 if you terminate it with STRG-C

Shouldn't ctorrent return the exit code for STRG-C

Could you please fix it?

Regards
Bjoern
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-21 19:26:40 UTC
Tell upstream to fix this - http://ctorrent.sourceforge.net
Comment 2 Bjoern Olausson 2006-07-23 17:09:28 UTC
Reported it to upstream

quote from upstream dev:
----------------------------------------------------------------------
CTorrent actually takes the first SIGINT (Control-C is one way to send
this signal) as a request to exit normally.  A second SIGINT is
interpreted ass an order to terminate immediately.  Neither one is
technically an error since this signal is generated by an external
request rather than an error or fault related to the program's
operation.

This is actually from the original behavior of CTorrent.  I will keep
this under advisement to change the behavior though, which I think
will be especially appropriate when a more friendly method of
requesting termination from the console is added.  This isn't as
far-fetched as it sounds; I do want to add keyboard commands to
control some of the features currently implemented via the CTCS
interface.  It's a little tricky but is on my to-do list.

Thanks for your email!
-----------------------------------------------------------------------

regards
Bjoern