Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Build a Simple Dynamic Site with Node.js Creating a Simple Server in Node.js Creating a Simple Server

troy beckett
troy beckett
12,035 Points

Killing the process.

Just wondering if anyone could explain what the '-9' is doing when the port is closed?

1 Answer

faraz
PLUS
faraz
Courses Plus Student 21,474 Points

-9 is the number for the SIGKILL option which forcefully and immediately ends the process.

More info about kill vs kill -9 and how they work: https://major.io/2010/03/18/sigterm-vs-sigkill/