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 ajn...@gmail.com wrote: Hi all, I originally posted this question on stackoverflowhttp://stackoverflow.com/questions/6624622/what-happe

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 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

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

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 paiva...@gmail.com 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

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 ajn...@gmail.com wrote: Hi all, I originally posted this question on stackoverflowhttp://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.

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 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

[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 stackoverflowhttp://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 ideas? --8- A little background first -

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 ajn...@gmail.com 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

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 ajn...@gmail.com wrote: Hi all, I originally posted this question on stackoverflow