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

process.terminate() has not been implemented on Linux #59

Closed
Ponyboy47 opened this issue Mar 12, 2018 · 1 comment · Fixed by #60
Closed

process.terminate() has not been implemented on Linux #59

Ponyboy47 opened this issue Mar 12, 2018 · 1 comment · Fixed by #60

Comments

@Ponyboy47
Copy link
Contributor

I'm receiving this error calling command.stop() on Linux:

Fatal error: terminate() is not yet implemented: file Foundation/Process.swift, line 464

I'll make the pull request, but would you recommend marking it as unavailable on Linux with:

@available(Linux, unavailable, message: "The terminate() function has not been implemented on Linux")

or to use a compiler flag:

#if os(macOS)
...
#endif
@kareman
Copy link
Owner

kareman commented Mar 12, 2018

Yes, Foundation on Linux has a lot of catching up to do. I think it would be best to mark it as unavailable, as that should provide better error messages when trying to use the method on Linux.

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 a pull request may close this issue.

2 participants