~edubuntu-italc-devel/italc/italc-intrepid

« back to all changes in this revision

Viewing changes to debian/ica-launcher

  • Committer: Stéphane graber
  • Date: 2008-06-25 16:29:21 UTC
  • Revision ID: stgraber@ubuntu.com-20080625162921-dcrlhhfqkv2zsy23
Update ica-launcher: kill all running ICA (fix KDE session restore bug), drop inet.c patch for x11vnc as it was making building for Intrepid impossible

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        HOSTNAME="$IP ($USER)"
31
31
fi
32
32
 
33
 
RUNNING_ICA=`ps ux | grep ica | grep $ISDPORT | grep $IVSPORT | awk '{print \$2}'`
 
33
RUNNING_ICA=`ps ux | awk '{print \$2" "\$11}' | grep -E "^[0-9]* ica" | awk '{print \$1}'`
34
34
if [ "$RUNNING_ICA" ]
35
35
then
 
36
        for processus in $RUNNING_ICA
 
37
        do
 
38
                kill $processus
 
39
        done
36
40
        echo ICA already running, killing it.
37
 
        kill -9 $RUNNING_ICA
38
41
        sleep 1s
39
42
fi
40
43