FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-28-2008, 11:37 PM
"H.S."
 
Default gnome-terminal application launcher and wget background running

Hello,

I am trying out the application launcher in gnome. If I create an
application launcher that starts with a wget command (while /not/ using
the "-b" option), it starts off okay: the gnome-terminal opens and wget
starts working.

However, if I close that gnome terminal, wget appears to continue
downloading running in the background. Isn't wget supposed to close when
the terminal window is closed?

I then tried the same thing in KDE where konsole opens. In this case
though closing the konsole also quits wget. So this works okay.

So on the surface it appears to be a problem in Gnome ... or a feature.

I have posted this on Ubuntu list as well when I tried this yesterday on
a Ubuntu machine. But the responses have not been, well, satisfactory. I
then tried this on my Debian machine hoping it would be different
(perhaps it was a bug); no luck. Searching google also did not give much
information regarding this backgrounding of wget in a launcher.

Any tips how this can be explained or where the problem is?

Thanks.
--

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-29-2008, 01:21 AM
Marco Romano
 
Default gnome-terminal application launcher and wget background running

H.S. has written:


I then tried the same thing in KDE where konsole opens. In this case
though closing the konsole also quits wget. So this works okay.



So on the surface it appears to be a problem in Gnome ... or a feature.



Any tips how this can be explained or where the problem is?


It's a wget feature:
http://www.gnu.org/software/wget/manual/html_node/Signals.html#Signals

When you close a gnome-terminal it sends a SIGHUP to the shell which in
turn do the same with its child processes (wget included).


Maybe konsole doesn't send HUP signal but directly a SIGKILL?

You can verify it with this tiny script:

#!/bin/bash

trap "a" HUP

a() {
echo "$(date -R) hangup" >>/tmp/foo.log
}

while :; do
sleep 1;
done

--
Kind regards,
Marco Romano.







--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-29-2008, 05:01 AM
"H.S."
 
Default gnome-terminal application launcher and wget background running

Marco Romano wrote:
>
> It's a wget feature:
> http://www.gnu.org/software/wget/manual/html_node/Signals.html#Signals

Ah! Thank you. This clarifies a lot. However ...


> When you close a gnome-terminal it sends a SIGHUP to the shell which in
> turn do the same with its child processes (wget included).
>
> Maybe konsole doesn't send HUP signal but directly a SIGKILL?

... in konsole it clearly says it sent a SIGHUP signal when I click on
the close button in the title bar.

I will give a shot at the script below and see what is going on.

Thanks.




--

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 04:12 PM.

VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org