Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20304 Details for
Bug 32788
kernel BUG at sched.c:564 (2.4.22-ben2)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
My python script, which appears to cause the crash
rig.py (text/plain), 2.01 KB, created by
Charles Price
on 2003-11-05 13:40:48 UTC
(
hide
)
Description:
My python script, which appears to cause the crash
Filename:
MIME Type:
Creator:
Charles Price
Created:
2003-11-05 13:40:48 UTC
Size:
2.01 KB
patch
obsolete
> >class Rig: > "Rig Control Class" > __author__ = 'Charles Price <2e1wpc@hognaston.com>' > def __init__(self,hamlib,type,device,speed): > "Configure the Rig" > self.hamlib = hamlib > self.type = type > self.device = self.setRigDevice(device) > self.speed = speed > self.HAMLIB_COMMANDS = { > 'get_freq': 'f', > 'set_freq': 'F', > } > > def setHamlib(self,hamlib): > "Set the hamlib location" > import os > # Check executable permissions on the binary > if os.access(hamlib,os.X_OK) == 1: > self.hamlib = hamlib > return 0 > else: > return -2 > > def getRigCapabilities(self): > "Fetch the capabilities of the current rig" > result = self.rigCtl('1','') > return result > > def setRigType(self,rigcode): > "Set the hamlib rig code" > self.type = rigcode > return 0 > > def setRigDevice(self,device): > "Set the rig device" > import os > # We need read / write on the relevant port > if os.access(device,os.R_OK) == 1 and os.access(device,os.W_OK) == 1: > # Now check whether the specified device is a TTY > try: > fd = open(device,'r+') > fd.isatty() > self.device = device > return 0 > except: > return -1 > else: > return -2 > > def setRigSpeed(self,speed): > "Set the serial port speed" > self.speed = speed > return 0 > > def getHamlib(self): > "Return the current hamlib location" > return self.hamlib > > def getRigType(self): > "Return the current rig type" > return self.type > > def getRigDevice(self): > "Return the current device" > return self.device > > def getRigSpeed(self): > "Return the current port speed" > return self.speed > > def rigCtl(self,command,argument): > "Executes a given rig command using hamlib" > from commands import getstatusoutput > todo = str(self.getHamlib())+' -m'+str(self.getRigType())+' -s'+str(self.getRigSpeed())+' -r'+str(self.getRigDevice())+' '+str(command)+' '+str(argument) > result = getstatusoutput(todo) > if result[0] == 0: > return result > else: > return -1
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 Raw
Actions:
View
Attachments on
bug 32788
: 20304 |
20309