In generally it's probably better to call close if you know you are done
with an object. But in a lot of cases it's not strictly necessary.
For processes you only need it to abort a running process.
For files you only need it to cancel a watch or a in progress read or write.
For dbus you probably want to close whenever you are finished with a client.
You only need to do process close
On 10/12/2017 04:10 AM, Davide Principi wrote:
my friends and I are working on an experimental configuration interface
based on Cockpit for the NethServer project . So far we are really
comfortable with Cockpit and I hope we'll be able to contribute back in
Now I have a question about the API. file.close(), process.close() and
dbus/client.close(): should I call them carefully to release underlying
resources, or I need them only in special case (i.e. abort an