Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Sharad Birmiwal
> Reason for the executable (note: not even a Perl script) is probably > that apt-get (dpkg?) can run on a bare system before anything else is Yup, that makes sense. SB ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Raj Mathur (राज माथुर)
On Sunday 17 Jul 2011, Sharad Birmiwal wrote: > -- begin offtopic -- > I tried "$ /usr/lib/apt/methods/http www.yahoo.com" but that didn't > seem to start fetching the file. As noted already, it's probably part > of the apt family and has it's own invocation method. apt developers > for some reason

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Nagarjuna G
On Fri, Jul 15, 2011 at 2:29 PM, Anupam Jain wrote: > Hi all, > > I originally posted this question on > stackoverflow, > but did not receive a satisfactory response. Any ideas?

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Anupam Jain
On Sun, Jul 17, 2011 at 9:35 PM, Mahesh T. Pai wrote: > Sharad Birmiwal said on Sun, Jul 17, 2011 at 10:00:20AM -0400,: > > > The reason is because apt-get invokes a program called http to > > download packages. Here is what I tried. > > While I do find the thread interesting, and commend your

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Sharad Birmiwal
> There is no program called `http' on a GNU/Linux system. What you have > is one of those confounded members of the apt, dpkg & family has what > they call 'method' to get the packages. If you configured your I agree that it is part of apt but http is an elf, executable program in itself. It is l

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Mahesh T. Pai
Sharad Birmiwal said on Sun, Jul 17, 2011 at 10:00:20AM -0400,: > The reason is because apt-get invokes a program called http to > download packages. Here is what I tried. While I do find the thread interesting, and commend your efforts, I suspect this statement. There is no program called `ht

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Sharad Birmiwal
> How about an strace of both methods to see what is the difference in > signal handling between the shell and sudo?  I'd do it myself but I'm Here you go. At first glance, I don't see anything revealing in the dumps. http://pastebin.com/e6mDBJKK (interrupted by ^C) http://pastebin.com/aG6R8pYh (

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Raj Mathur (राज माथुर)
On Sunday 17 Jul 2011, Sharad Birmiwal wrote: > On Fri, Jul 15, 2011 at 4:59 AM, Anupam Jain wrote: > > Hi all, > > > > I originally posted this question on > > stackoverflow > ns-in-bash-when-you-do-ctrl-c-hint-its-not-simply-sending-a-si

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Sharad Birmiwal
On Fri, Jul 15, 2011 at 4:59 AM, Anupam Jain wrote: > Hi all, > > I originally posted this question on > stackoverflow, > but did not receive a satisfactory response. Any ideas

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-17 Thread Sandip Bhattacharya
On Fri, Jul 15, 2011 at 02:29:23PM +0530, Anupam Jain wrote: > A little background first - When I do apt-get install downloads from my > company internet it provides a high burst of speed (400-500KB/s) for the > first 10 seconds or so before dropping down to a tenth of that (40-50KB/s), > and then

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-15 Thread Ravi Kumar
On Fri, Jul 15, 2011 at 4:05 PM, Ankit Chaturvedi < ankit.chaturv...@gmail.com> wrote: > On Fri, Jul 15, 2011 at 3:49 PM, Anupam Jain wrote: > > > On Fri, Jul 15, 2011 at 3:13 PM, Ankit Chaturvedi < > > ankit.chaturv...@gmail.com> wrote: > > > >> > >> On Fri, Jul 15, 2011 at 2:29 PM, Anupam Jain

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-15 Thread Ankit Chaturvedi
On Fri, Jul 15, 2011 at 3:49 PM, Anupam Jain wrote: > On Fri, Jul 15, 2011 at 3:13 PM, Ankit Chaturvedi < > ankit.chaturv...@gmail.com> wrote: > >> >> On Fri, Jul 15, 2011 at 2:29 PM, Anupam Jain wrote: >> >>> Hi all, >>> >>> I originally posted this question on >>> stackoverflow< >>> http://st

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-15 Thread Anupam Jain
On Fri, Jul 15, 2011 at 3:13 PM, Ankit Chaturvedi < ankit.chaturv...@gmail.com> wrote: > > On Fri, Jul 15, 2011 at 2:29 PM, Anupam Jain wrote: > >> Hi all, >> >> I originally posted this question on >> stackoverflow< >> http://stackoverflow.com/questions/6624622/what-happens-in-bash-when-you-do-

Re: [ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-15 Thread Ankit Chaturvedi
On Fri, Jul 15, 2011 at 2:29 PM, Anupam Jain wrote: > Hi all, > > I originally posted this question on > stackoverflow< > http://stackoverflow.com/questions/6624622/what-happens-in-bash-when-you-do-ctrl-c-hint-its-not-simply-sending-a-sigint > >, > but did not receive a satisfactory response. Any

[ilugd] What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

2011-07-15 Thread Anupam Jain
Hi all, I originally posted this question on stackoverflow, but did not receive a satisfactory response. Any ideas? --8<- A little background first