July 2019
Intermediate to advanced
458 pages
12h 12m
English
After seeing the way in which incoming signals are handled, let's take a look at how to send signals to other processes programmatically. The os.Process structure is the only tool we need—its Signal method makes it possible to send a signal to the project. It's that easy!
The less simple part is obtaining the process. There are two use cases, as follows:
The first use case is simpler, as we already have the process as a variable, or as an attribute of an exec.Cmd variable, and we can call the ...
Read now
Unlock full access