Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > "Interrupted function call" exception while relogging :(

Reply
Thread Tools

"Interrupted function call" exception while relogging :(

 
 
Sylwia
Guest
Posts: n/a
 
      01-08-2004
Hi!

I need your help...

I have the following problem. I've implemented the python Windows
Service which behaves like a log supervisor. If the space

used by log files is bigger than a given upper limit, then it starts
to delete log files until the space is less than a given

lower limit. I configured the service to start up automatically on
system boot. The script checks the space used by log files

every 1000 secs. After analyse of the space, it falls asleep
(time.sleep(1000)). Everything works OK, except one thing...

Since the service is not tied to the user ID of the person starting
it, the service should remain open even when that person

who started it logs off. So I made an experiment and relogged. After
that it turned out that the service stopped working. The

Event Viewer returned the error:

"SvcDoRun
time.sleep(1000)
exceptions.IOError: [Errno 4] Interrupted function call
"
I use Window XP OS and Python and Python 2.3.2

I guess that some asynchronous signal was caught by the process during
the execution of an interruptible function

(time.sleep(1000)). Maybe it happened while pressing Ctrl+Alt+Del
sequence during logging? Maybe I should add some signal

handling?
Unfortunately the Windows signal implementation is limited to 6
signals(???):

SIGABRT Abnormal termination
SIGFPE Floating-point error
SIGILL Illegal instruction
SIGINT CTRL+C signal
SIGSEGV Illegal storage access
SIGTERM Termination request

Please help me...

Best wishes,

Sylwia
 
Reply With Quote
 
 
 
 
Thomas Heller
Guest
Posts: n/a
 
      01-08-2004
http://www.velocityreviews.com/forums/(E-Mail Removed) (Sylwia) writes:

> Hi!
>
> I need your help...
>
> I have the following problem. I've implemented the python Windows
> Service which behaves like a log supervisor. If the space
>
> used by log files is bigger than a given upper limit, then it starts
> to delete log files until the space is less than a given
>
> lower limit. I configured the service to start up automatically on
> system boot. The script checks the space used by log files
>
> every 1000 secs. After analyse of the space, it falls asleep
> (time.sleep(1000)). Everything works OK, except one thing...
>
> Since the service is not tied to the user ID of the person starting
> it, the service should remain open even when that person
>
> who started it logs off. So I made an experiment and relogged. After
> that it turned out that the service stopped working. The
>
> Event Viewer returned the error:
>
> "SvcDoRun
> time.sleep(1000)
> exceptions.IOError: [Errno 4] Interrupted function call
> "
> I use Window XP OS and Python and Python 2.3.2


Just an idea: you could try to use win32api.Sleep() instead.

Thomas
 
Reply With Quote
 
 
 
 
Nazgul
Guest
Posts: n/a
 
      01-08-2004

Uzytkownik "Thomas Heller" <(E-Mail Removed)> napisal w wiadomosci >
writes:
> Just an idea: you could try to use win32api.Sleep() instead.
>
> Thomas


Thanks! I will try now and let you know if it works for my case... Thanks
for reply!

Best wishes,

Sylwia


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception of type 'System.Web.HttpUnhandledException' wasthrown.Exception has been thrown by the target of an invocation.System.WebSystem.Exception jobs ASP .Net 1 11-16-2007 05:57 PM
while executing my client program i get the exception javax.naming.LinkException: [Root exception is javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: remaining if plz anybody know how to solve this problem then mahesh Java 0 03-08-2007 12:26 PM
"Interrupted function call" exception in Python service while relogging Nazgul Python 0 01-08-2004 09:43 AM
'Interrupted function call' in time.sleep(1000) after relogging Sylwia Python 0 01-07-2004 12:17 PM
Add properties to function while in function with out specifying function ? Richard A. DeVenezia Javascript 4 09-05-2003 01:43 PM



Advertisments