Re: icewm stuck with a config at .icewm/startup

Jörg Sommer <[email protected]> Thu, 2 Jun 2011 10:21:00 +0000 (UTC)
Newsgroups gmane.comp.window-managers.icewm.user
Message-ID <[email protected]>
Hi J.,

"J. Bakshi" <[email protected]> wrote:
> I am running icewm happily. Recently I have added wbar configuration at
> my .icewm/startup as below
>
>
> ````````````````````
> (wbar  -above-desk  -nofont -pos top  -zoomf 1.6 -isize 15  -idist 8 -jumpf 1  -nanim 2  -balfa 0) &
>
> ````````````````````
>
> Things are running well but when I logout Icewm it just hanging around.

Can you log in on another terminal/console and take a snapshot of the
process tree with ps fax?

There should be a shell as parent of wbar hanging around. Can you send
the output of

% grep \^S /proc/$PID_OF_SHELL/status

I have a similar problem with my shutdown and reboot script. It hangs,
because IceWM masks the signal for childs for ignoring and the child (the
shell) never receives the SIGCHLD and waits forever.

This is a small perl script that resets the signal mask.

#!/usr/bin/perl -W

use POSIX;
$sigset = POSIX::SigSet->new();
sigprocmask(SIG_SETMASK, $sigset);

exec @ARGV;

This is the way I'm using it.

ShutdownCommand="cd /; ~/.icewm/unblock-signals sudo /bin/sh -c '(sleep 5; shutdown -h now) &' </dev/null >/dev/null 2>&1 & kill $PPID"

Bye, Jörg.
-- 
A valid expression in Java: x = new A().new B();

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
IceWM-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icewm-user