well, unfortunately does not work:
here i have the handler
and here i have the should_cancel part .. the thing is that even for big files (not many small files) my should_cancel is not called at all! (at least update is called sometimes)
so, even if i put sys.exit in sigint handler i get stuff like this (notice the order):
XRootD CopyProcess is starting..
jobID: 1/1 >>> Start
^C^C^C^CjobID: 1/1 >>> ERRNO/CODE/XRDSTAT 0/0/0 >>> STATUS OK >>> SPEED 21.00 MiB/s MESSAGE: [SUCCESS]
Cought a SIGINT
Exit
XRootD CopyProcess ends.
without the exit function in handler look like this
if i'm fast enough (notice the position of ^C)
XRootD CopyProcess is starting..
jobID: 1/1 >>> Start
^CjobID: 1/1 >>> ERRNO/CODE/XRDSTAT 3029/400/1 >>> STATUS ERROR >>> SPEED 0 B/s MESSAGE: [ERROR] Server responded with an error: [3029] Metalink: no more replicas to try. Last seen error: [ERROR] Error response: No such file or directory (source)
Cought a SIGINT
XRootD CopyProcess ends.
but if not
XRootD CopyProcess is starting..
jobID: 1/1 >>> Start
^C^C^C^C^CjobID: 1/1 >>> ERRNO/CODE/XRDSTAT 0/0/0 >>> STATUS OK >>> SPEED 21.09 MiB/s MESSAGE: [SUCCESS]
Cought a SIGINT
XRootD CopyProcess ends.
so... what i'm missing?
Thank you!!
Adrian
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1