Re: [dev] [wmii] problem with wmiir xwrite /client/$client/ctl kill

From: Kris Maglione <maglione.k_AT_gmail.com>
Date: Thu, 27 May 2010 12:31:42 -0400

On Thu, 27 May 2010 18:12:57 +0200
Thomas Dean <78abc_AT_web.de> wrote:

> On Thu, May 27, 2010 at 11:55:38 -0400, Kris Maglione wrote:
> > Oh, sorry, I thought it was in the man page. Just add ‘wmiir
> > setsid’ to the front of the lines that start fetchmail and
> > x-terminal-emulator.
>
> Ok, I just did that, but it did not change anything. Nor is there any
> further output when the script dies. Should there? I don't know what
> "wmiir setsid" does...
> Anything else I can do?

It's not supposed to have any output. It just basically disassociates a
process from its parent. You should generally use it when launching
programs from wmiirc so they don't catch any signals if you kill wmiirc.
This would be easier if I could duplicate this. I think your best bet is
some hack like this:

--- fetchmail.sh 2010-05-27 12:30:39.000000000 -0400
+++ - 2010-05-27 12:30:48.882841963 -0400
@@ -49,7 +49,7 @@
                         case "$1" in
                         1)
- fetchmail &;;
+ ( fetchmail & ) &;;
                         3)
- x-terminal-emulator -e tail -n 200 -f ~/.fetchmaillog &;;
+ ( wmiir setsid x-terminal-emulator -e tail -n 200 -f ~/.fetchmaillog & )&;;
                         esac
                 fi;;

-- 
Kris Maglione
Doing linear scans over an associative array is like trying to club
someone to death with a loaded Uzi.
	--Larry Wall
Received on Thu May 27 2010 - 16:31:42 UTC

This archive was generated by hypermail 2.2.0 : Thu May 27 2010 - 16:36:02 UTC