Univention Bugzilla – Attachment 11157 Details for
Bug 56904
Failing to reset the SMB connections on a computer results in an exam that can't be stopped, which blocks other exams
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to prevent an SMB reset failure from stopping the exam
smb-protection.patch (text/plain), 906 bytes, created by
J Leadbetter
on 2023-12-07 14:50:45 CET
(
hide
)
Description:
Patch to prevent an SMB reset failure from stopping the exam
Filename:
MIME Type:
Creator:
J Leadbetter
Created:
2023-12-07 14:50:45 CET
Size:
906 bytes
patch
obsolete
>diff --git ucs-school-umc-computerroom/umc/python/computerroom/__init__.py ucs-school-umc-computerroom/umc/python/computerroom/__init__.py >index be3fc630a..127eb4c9f 100644 >--- ucs-school-umc-computerroom/umc/python/computerroom/__init__.py >+++ ucs-school-umc-computerroom/umc/python/computerroom/__init__.py >@@ -963,7 +963,10 @@ class Instance(SchoolBaseModule): > MODULE.info("SMB process: %s" % str(process)) > if process.username and process.username.lower() in veyon_users: > MODULE.info("Kill SMB process %s" % process.pid) >- os.kill(int(process.pid), signal.SIGTERM) >+ try: >+ os.kill(int(process.pid), signal.SIGTERM) >+ except Exception as exc: >+ MODULE.warn("Unable to kill SMB process: %s" % exc) > > @sanitize(server=StringSanitizer(required=True)) > @check_room_access
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56904
: 11157