Add ProcessList_delete to the variable interface.

This commit is contained in:
Hisham Muhammad
2014-11-27 17:48:38 -02:00
parent ff4d1b466f
commit cda6bdd56b
5 changed files with 16 additions and 3 deletions

View File

@ -77,6 +77,11 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) {
return this;
}
void ProcessList_delete(ProcessList* this) {
ProcessList_done(this);
free(this);
}
static ssize_t xread(int fd, void *buf, size_t count) {
// Read some bytes. Retry on EINTR and when we don't get as many bytes as we requested.
size_t alreadyRead = 0;