Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some updates #15

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Some updates #15

wants to merge 16 commits into from

Conversation

Techno-Fox
Copy link
Contributor

I've added a pid_kill procedure to kill the specified pid, and some updates to the psutil library, such as casting where needed, and adding check for OpenProcess. Also removed deprecated feature in favor of the supported ones.

renamed file properly to disk_partitions
added documentation for the DiskPartition type
added a link to the newly created DiskParition documentation
added DiskPartition type documentation
existsFile is deprecated, and now using fileExists instead
replaced ..colon with 0..colon, because ..b is deprecated to 0..b.
replaced ..10 with 0..10, because ..b is deprecated to 0..b.
cuchar is deprecated, thus replaced with char
implicit conversion from string to cstring, thus added the cast to avoid CStringConv compile errors in the future
type pragmas follow the type name; this form of writing pragmas is deprecated
See corresponding Defect; DivByZeroError is deprecated, thus use DivByZeroDefect instead
added the pid_kill function, which will send a SIGKILL to the specified PID.
added pid_kill procedure for killing the specified pid. This opens the process and then terminates it. Raises an OSError for an error
Do to casting errors, i've added casts to where I was getting them.
i've added some checks for OpenProcess return variable.
added the pid_kill proc to the psutil.nim file, also exporting the platform so user can access all the function without needing to do "psutil/platform_linux" or "psutil/platform_windows"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant