Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.sbin/powerd



On Tue, Jan 26, 2010 at 02:41:52PM -0800, Jason Thorpe wrote:
>         if (ioctl(fd, POWER_IOC_GET_TYPE, &power_type) == -1) {
>                 syslog(LOG_ERR, "POWER_IOC_GET_TYPE: %m");
>                 exit(EX_OSERR);
>         }
> 
>         (void)asprintf(&cp, "%s/%s", _PATH_POWERD_SCRIPTS,
>             power_type.power_type);
>         if (cp == NULL) {
>                 syslog(LOG_ERR, "allocating script path: %m");
>                 exit(EX_OSERR);
>         }
>         script_paths[0] = cp;

Okay, I stand corrected.

However, the "power_type" from POWER_IOC_GET_TYPE can currently only be
"acpi" and "landisk" (...). No "apm" is being set anywhere in the tree via
sysmon_power_settype().

- Jukka.


Home | Main Index | Thread Index | Old Index