BlackJack hat geschrieben:@Alex66955: Ist da denn ein wirklicher Fehler? Du schreibst zwar "Fehlermeldung:" aber ist das vielleicht nicht nur eine Warnung das sich das Verhalten der Funktion in Python 2.5 gegenüber 2.4 verändert hat, wenn man das vierte Argument nicht explizit angibt? Womit man die Warnung dann übrigens auch wegbekommen sollte.
Hast Recht war nur eine Warnmeldung.
Beim hinzufügen einer 0 als viertes Argument bekomme ich folgendes (das 4. Argument ist zuständig für mutate_flag):
"IOERROR: [ERRNO 25] Inappropriate ioctl for device"
Also scheint was mit meinen Angaben für den IOCTL Befehl nicht zustimmen.
der equivalente "C" code zum ändern des TimeOuts ist:
Code: Alles auswählen
87 For some drivers it is possible to modify the watchdog timeout on the
88 fly with the SETTIMEOUT ioctl, those drivers have the WDIOF_SETTIMEOUT
89 flag set in their option field. The argument is an integer
90 representing the timeout in seconds. The driver returns the real
91 timeout used in the same variable, and this timeout might differ from
92 the requested one due to limitation of the hardware.
93
94 int timeout = 45;
95 ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
96 printf("The timeout was set to %d seconds\n", timeout);
Diverse kleine Änderungen führten immer zur selben Fehlermeldung