Re: long timeouts on shutdown/log off

2003-10-21 Thread Dylan Cuthbert
Ok, more info

The cron tasks are running as normal when I try to log off, its just that
windows can't forcibly terminate them when it tries to close everything and
has to sit there waiting for the cron jobs to finish (can be up to 30
minutes for backing up a lot of changes).

The pre-20th September version of cygwin has no problem terminating the cron
jobs (I still have several machines running that version and the same
script), so what's changed in the latest version to cause this?

I'm beginning to suspect It probably is to do with Pierre's permission
stuff.  Because the cron jobs are run from a daemon running as SYSTEM, the
user log off procedure can't kill the parent task, but the children tasks
*are* user tasks and maybe it can't kill these because they were created by
SYSTEM?  Just clutching at straws as right now I don't have my backup system
working (unless I put up with 30 minute logoff times)  and I want it back
:-(

Any help much appreciated.

-
Q-Games, Dylan Cuthbert.
http://www.q-games.com

"Christopher Faylor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Fri, Oct 17, 2003 at 07:50:34PM +0900, Dylan Cuthbert wrote:
> >Ok, here are the ps results... I can see three cron tasks with the I
field
> >set (Interactive?) which is very odd as my backup script doesn't have any
> >input (I've attached the script and the output)
>
> 'I'nput.  That would indicate that cron is waiting for some kind of file
I/O.
>
> cgf
>



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: long timeouts on shutdown/log off

2003-10-19 Thread Christopher Faylor
On Sun, Oct 19, 2003 at 08:33:18PM -0700, Karl M wrote:
>Hi All...
>
>Now Chris, you promised to stop with taking over the computers.  I
>think that taking over the users' brai
>
>click
>
>Yes Chris, you are correct.  Everything is as it should be.  Sorry to
>disturb you.
>
>Thanks,
>
>...Karl

It's working!  It's working!  Oh, boy.  This is nifty!

Wait.  Nifty isn't a properly fiendish term.

.
.
.

Exxxccelllenttt...

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: long timeouts on shutdown/log off

2003-10-19 Thread Karl M
Hi All...

Now Chris, you promised to stop with taking over the computers. I think that 
taking over the users' brai

click

Yes Chris, you are correct. Everything is as it should be. Sorry to disturb 
you.

Thanks,

...Karl


From: Christopher Faylor <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: long timeouts on shutdown/log off
Date: Sun, 19 Oct 2003 22:34:28 -0400
On Mon, Oct 20, 2003 at 10:53:54AM +0900, Dylan Cuthbert wrote:
>Stranger and stranger.
>
>As there are only 3 in the task list it means that quite a few of the
>cron jobs are finishing ok.  (I run it every hour)
>
>But more importantly, why can't winxp kill those tasks properly when I
>log off or shutdown?  And why has it only started happening in this
>latest version of cygwin?
I'm glad to see that cygwin is so powerful that it can create unkillable
processes.  It warms my heart to see that it is gaining in strength and
ability.  Soon, you won't be able to turn off your machine at all if
cygwin is running on it.  At that point, cygwin's true insidious purpose
will finally be revealed.
cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/
_
Concerned that messages may bounce because your Hotmail account has exceeded 
its 2MB storage limit? Get Hotmail Extra Storage! 
http://join.msn.com/?PAGE=features/es

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: long timeouts on shutdown/log off

2003-10-19 Thread Dylan Cuthbert
those damn double-bluffs again

;-)



"Christopher Faylor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, Oct 20, 2003 at 10:53:54AM +0900, Dylan Cuthbert wrote:

> I'm glad to see that cygwin is so powerful that it can create unkillable
> processes.  It warms my heart to see that it is gaining in strength and
> ability.  Soon, you won't be able to turn off your machine at all if
> cygwin is running on it.  At that point, cygwin's true insidious purpose
> will finally be revealed.
>
> cgf
>



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: long timeouts on shutdown/log off

2003-10-19 Thread Christopher Faylor
On Mon, Oct 20, 2003 at 10:53:54AM +0900, Dylan Cuthbert wrote:
>Stranger and stranger.
>
>As there are only 3 in the task list it means that quite a few of the
>cron jobs are finishing ok.  (I run it every hour)
>
>But more importantly, why can't winxp kill those tasks properly when I
>log off or shutdown?  And why has it only started happening in this
>latest version of cygwin?

I'm glad to see that cygwin is so powerful that it can create unkillable
processes.  It warms my heart to see that it is gaining in strength and
ability.  Soon, you won't be able to turn off your machine at all if
cygwin is running on it.  At that point, cygwin's true insidious purpose
will finally be revealed.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: long timeouts on shutdown/log off

2003-10-19 Thread Dylan Cuthbert
Stranger and stranger.

As there are only 3 in the task list it means that quite a few of the cron
jobs are finishing ok. (I run it every hour)

But more importantly, why can't winxp kill those tasks properly when I log
off or shutdown?  And why has it only started happening in this latest
version of cygwin?

Regards

-
Q-Games, Dylan Cuthbert.
http://www.q-games.com

"Christopher Faylor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Fri, Oct 17, 2003 at 07:50:34PM +0900, Dylan Cuthbert wrote:
> >Ok, here are the ps results... I can see three cron tasks with the I
field
> >set (Interactive?) which is very odd as my backup script doesn't have any
> >input (I've attached the script and the output)
>
> 'I'nput.  That would indicate that cron is waiting for some kind of file
I/O.
>
> cgf
>



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: long timeouts on shutdown/log off

2003-10-17 Thread Christopher Faylor
On Fri, Oct 17, 2003 at 07:50:34PM +0900, Dylan Cuthbert wrote:
>Ok, here are the ps results... I can see three cron tasks with the I field
>set (Interactive?) which is very odd as my backup script doesn't have any
>input (I've attached the script and the output)

'I'nput.  That would indicate that cron is waiting for some kind of file I/O.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: long timeouts on shutdown/log off

2003-10-17 Thread Dylan Cuthbert
Ok, here are the ps results... I can see three cron tasks with the I field
set (Interactive?) which is very odd as my backup script doesn't have any
input (I've attached the script and the output)

maybe cron isn't able to close the shells it creates to run the jobs
properly?

Any ideas?

-
Q-Games, Dylan Cuthbert.
http://www.q-games.com



"Andrew DeFaria" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dylan Cuthbert wrote:
>
> > The problem:
> >
> > After about a day's work I go to logoff or shutdown and the machine
> > just sits there, fully operational and "in the process of logging
> > off", so I can't open any new tasks but I can open up a file explorer
> > window or the start menu etc. If I wait long enough (and I mean 15
> > minutes to several hours) the machine will eventually log off
> > succussfully.
>
> While in this "in the process of logging off" mode, start the
> TaskManager (or better yet have the TaskManager running when you attempt
> shutdown), then selectively start killing processes. If you kill a
> process and wham you logout that's probably the culprit!
>
> Note you cannot kill services with the TaskManager. You can either:
> Start the Services applet and attempt to shutdown the services or have a
> console window running and try net stop "sevice name" or do what I do,
> get Process Explorer from SysInternals which allows you to kill services.
>
> Good luck.
>
>
>


backup-sh.tgz
Description: Binary data
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 1368   11368   1368?   18 10:46:45 /usr/bin/cygrunsrv
 136413681368   1620?   18 10:46:45 /usr/sbin/cron
 3892   13892   38920 12000 11:03:04 /usr/bin/rxvt
I392838923928   39441 12000 11:03:04 /usr/bin/bash
I239613641368   2396?   18 16:00:00 /usr/sbin/cron
 235223962352   2604? 12000 16:00:02 /usr/bin/sh
 408823522352   2680? 12000 16:00:02 /usr/bin/bash
  80440882352   2620? 12000 16:42:35 /usr/bin/rsync
 1492 8042352   1492? 12000 16:42:35 /usr/bin/rsync
I264013641368   2640?   18 17:00:00 /usr/sbin/cron
 339626403396   2380? 12000 17:00:02 /usr/bin/sh
 238433963396   1284? 12000 17:00:02 /usr/bin/bash
 232823843396   2928? 12000 17:30:10 /usr/bin/rsync
 282423283396   2824? 12000 17:30:10 /usr/bin/rsync
I 90413641368904?   18 19:00:00 /usr/sbin/cron
 2192 9042192   3076? 12000 19:00:03 /usr/bin/sh
 340821922192   2332? 12000 19:00:03 /usr/bin/bash
 189634082192300? 12000 19:04:44 /usr/bin/rsync
 248818962192   2488? 12000 19:04:45 /usr/bin/rsync
 3480   13480   34804 12000 19:46:39 /usr/bin/rxvt
  5083480 508   36365 12000 19:46:39 /usr/bin/bash
 2944 5082944   19445 12000 19:48:29 /usr/bin/ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 1368   11368   1368?   18 10:46:45 /usr/bin/cygrunsrv
 1912   0   0   1912?0 10:47:38 C:\WINXP\Explorer.EXE
  248   0   0248?0 10:47:39 C:\WINXP\System32\conime.exe
 1872   0   0   1872?0 10:47:40 C:\WINXP\System32\ctfmon.exe
  704   0   0704?0 10:47:42 C:\Program Files\Elaborate 
Bytes\CloneCD\CloneCDTray.exe
  612   0   0612?0 10:47:42 C:\Program 
Files\D-Tools\daemon.exe
 1068   0   0   1068?0 10:47:42 C:\WINXP\SOUNDMAN.EXE
 1748   0   0   1748?0 10:47:43 C:\Program 
Files\Logitech\MouseWare\system\em_exec.exe
  588   0   0588?0 10:47:43 C:\Program 
Files\QuickTime\qttask.exe
  712   0   0712?0 10:47:44 D:\tools\jajc\jajc.exe
 1204   0   0   1204?0 10:47:44 C:\Program 
Files\Messenger\msmsgs.exe
 1236   0   0   1236?0 10:47:45 C:\Program 
Files\RSNet\RSEDNClient.exe
 1572   0   0   1572?0 10:47:45 C:\Program 
Files\Gigabyte\Gigabyte Windows Utility Manager\gwum.exe
 1684   0   0   1684?0 10:47:45 C:\Program 
Files\SonyPDA\Hotsync.exe
 1104   0   0   1104?0 10:47:46 C:\Program 
Files\OpenOffice.org1.1\program\soffice.exe
  492   0   0492?0 10:47:47 C:\Program Files\One Guy 
Coding\Vern 3.2\vern32.exe
 2972   0   0   2972?0 10:47:59 C:\Program Files\Outlook 
Express\msimn.exe
 3884   0   0   3884?0 11:03:04 C:\WINXP\system32\cmd.exe
 3892   13892   38920 12000 11:03:04 /usr/bin/rxvt
 3944   0   0   

Re: long timeouts on shutdown/log off

2003-10-16 Thread Dylan Cuthbert

Sorry, forgot to mention, a real nasty side effect:

I cannot run the task manager - Ctrl-Alt-Del does not work!  So all I can do
is just sit there twiddling my thumbs.

I will try running the task manager *before* attempting to log off though
and see what's going on.  I will also run ps -W, ps -a and netstat -an
before attempting it too, and post all the results here tomorrow (I have to
wait a day for this problem to occur each time so the turn-around is a bit
longwinded)

Regards

-
Q-Games, Dylan Cuthbert.
http://www.q-games.com

"Andrew DeFaria" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dylan Cuthbert wrote:
>
> > The problem:
> >
> > After about a day's work I go to logoff or shutdown and the machine
> > just sits there, fully operational and "in the process of logging
> > off", so I can't open any new tasks but I can open up a file explorer
> > window or the start menu etc. If I wait long enough (and I mean 15
> > minutes to several hours) the machine will eventually log off
> > succussfully.
>
> While in this "in the process of logging off" mode, start the
> TaskManager (or better yet have the TaskManager running when you attempt
> shutdown), then selectively start killing processes. If you kill a
> process and wham you logout that's probably the culprit!
>
> Note you cannot kill services with the TaskManager. You can either:
> Start the Services applet and attempt to shutdown the services or have a
> console window running and try net stop "sevice name" or do what I do,
> get Process Explorer from SysInternals which allows you to kill services.
>
> Good luck.
>
>
>



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: long timeouts on shutdown/log off

2003-10-16 Thread Andrew DeFaria
Dylan Cuthbert wrote:

> The problem:
>
> After about a day's work I go to logoff or shutdown and the machine
> just sits there, fully operational and "in the process of logging
> off", so I can't open any new tasks but I can open up a file explorer
> window or the start menu etc. If I wait long enough (and I mean 15
> minutes to several hours) the machine will eventually log off
> succussfully.

While in this "in the process of logging off" mode, start the
TaskManager (or better yet have the TaskManager running when you attempt
shutdown), then selectively start killing processes. If you kill a
process and wham you logout that's probably the culprit!

Note you cannot kill services with the TaskManager. You can either:
Start the Services applet and attempt to shutdown the services or have a
console window running and try net stop "sevice name" or do what I do,
get Process Explorer from SysInternals which allows you to kill services.

Good luck.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



long timeouts on shutdown/log off

2003-10-16 Thread Dylan Cuthbert
Hi there,

Since upgrading to the latest version of cygwin (20th Sept version?) I've
had a couple of problems - one has been resolved by Pierre (the admin group
filemapping problem).  However, Pierre thinks the other problem I'm having
isn't related to that and he suggested posting it again to the list.

The problem:

After about a day's work I go to logoff or shutdown and the machine just
sits there, fully operational and "in the process of logging off", so I
can't open any new tasks but I can open up a file explorer window or the
start menu etc.  If I wait long enough (and I mean 15 minutes to several
hours) the machine will eventually log off succussfully.

The Probable Suspect:

I run an hourly cron job (just a simple shell script) on my domain user
(\\q-domain\dylan) that backs up to a linux server using RSYNC.  If I
disable this service (daemon) I don't get the problem.  This daemon and
script has been running on my machine for a month or so before the 20th
september version of cygwin with no problems whatsoever.

The user on this machine is a domain user, and the PDC is a linux redhat 8
server with the vanilla samba installed on it.  The domain user only has
local Power User privileges.  Following Pierre's advice regarding the
FileMapping problem the user's group in /etc/group is the domain group
"q-games"'s SID. (not sure if this is relevant to this problem)

Regards

-- 
-
Q-Games, Dylan Cuthbert.
http://www.q-games.com
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Oct 17 11:04:02 2003

Windows XP Professional Ver 5.1 Build 2600 Service Pack 1

Path:   d:\cygwin\usr\local\bin
d:\cygwin\bin
d:\cygwin\bin
.
c:\Program Files\Intel\IDE\C++\VSNet2002
c:\Program Files\Intel\ICID70
c:\Program Files\Intel\Compiler70\IA32\bin
c:\Program Files\Common Files\Intel\Shared Files\Ia32\bin
c:\Program Files\Intel\EDB70
c:\Program Files\Microsoft Visual Studio .NET\Common7\IDE
c:\Program Files\Microsoft Visual Studio .NET\VC7\BIN
c:\Program Files\Microsoft Visual Studio .NET\Common7\Tools
c:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\bin\prerelease
c:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\bin
c:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\bin
c:\WINXP\Microsoft.NET\Framework\v1.0.3705
c:\Tcl\bin
c:\Program Files\Intel\ISelect\Bin
c:\Program Files\Intel\EDB70
c:\Program Files\Intel\Compiler70\IA32\Bin
c:\Program Files\Common Files\Intel\Shared Files\Ia32\Bin
c:\WINXP\system32
c:\WINXP
c:\WINXP\System32\Wbem
c:\Program Files\ATI Technologies\ATI Control Panel
d:\cygwin\home\dylan\projects\global
d:\cygwin\usr\local\bin
d:\cygwin\bin
c:\program files\j2sdk_nb\j2sdk1.4.2\bin
c:\Tcl\bin
c:\Program Files\Intel\ISelect\Bin
c:\Program Files\Intel\EDB70
c:\Program Files\Intel\Compiler70\IA32\Bin
c:\Program Files\Common Files\Intel\Shared Files\Ia32\Bin
c:\WINXP\system32
c:\WINXP
c:\WINXP\System32\Wbem
c:\Program Files\ATI Technologies\ATI Control Panel
.
d:\cygwin\usr\X11R6\bin

Output from d:\cygwin\bin\id.exe (nontsec)
UID: 12000(dylan) GID: 12013(q-games)
12013(q-games)

Output from d:\cygwin\bin\id.exe (ntsec)
UID: 12000(dylan) GID: 12013(q-games)
547(Power Users)  545(Users)
12013(q-games)

SysDir: C:\WINXP\System32
WinDir: C:\WINXP

CYGWIN = `ntsec tty'
HOME = `d:\cygwin\home\dylan'
MAKE_MODE = `unix'
PWD = `/home/dylan/test'
USER = `dylan'

Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  NTFS   51199Mb  71% CP CS UN PA FC WIN2K
d:  hd  NTFS   44351Mb  82% CP CS UN PA FC WORK
e:  cd   N/AN/A
f:  cd  CDFS 641Mb 100%CS UN   BF1942_1
g:  cd   N/AN/A
h:  net NTFS   76244Mb  61% CP CSPAdylan
i:  net NTFS   76190Mb  58% CP CSPAInstall_Disks
m:  net NTFS   76244Mb  61% CP CSPAmoveabletype
p:  net NTFS   76190Mb  58% CP CSPAProjectData
r:  net NTFS   76190Mb  58% CP CSPAArtist_Folder
u:  net NTFS   76244Mb  61% CP CSPAAdmin-Backups
w:  net NTFS   76244Mb  61% CP CSPAWeekly
y:  net NTFS   76244Mb  61% CP CSPAyesterday

d:\cygwin  / system  binmode
d:\cygwin/bin  /usr/bin  system  binmode
d:\cygwin/lib  /usr/lib  system  binmode
d:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.  /cygdrive system  binmode,cygdr