[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 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.







Reply to: