mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-13 13:17:43 +03:00
run: Allows the user to reset CPUAffinity= back to an empty list
Before this CPUAffinity= requires a valid cpu set, and the setting cannot be reset. Moreover, if CPUAffinity= with empty string is passed, then message container is closed without no values appended, thus we get error. This makes CPUAffinity= accepts empty string to reset the setting and avoid error.
This commit is contained in:
parent
501941aaf0
commit
784b9a1a32
@ -705,7 +705,6 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
|
||||
if (r < 0)
|
||||
return bus_log_create_error(r);
|
||||
|
||||
if (cpuset)
|
||||
sd_bus_message_append_array(m, 'y', cpuset, CPU_ALLOC_SIZE(ncpus));
|
||||
|
||||
r = sd_bus_message_close_container(m);
|
||||
|
Loading…
Reference in New Issue
Block a user