sigtype [-j jobid OR -a jobalias] [-s|g]
sigtype must be the first arg
jobid can be obtained via mpdlistjobs and is of the form:
jobnum@mpdid where mpdid is mpd where first process runs, e.g.:
1@linux02_32996 (may need @ in some shells)
1
is sufficient if you are on the machine where the job started
one of -j or -a must be specified (but only one)
-s or -g specify whether to signal the single user process or its group (default is g)
Delivers a Unix signal to all the application processes in the job
FUNCTIONS
close(...)
close(fd)
Close a file descriptor (for low level IO).
ctime(...)
ctime(seconds) -> string
Convert a time in seconds since the Epoch to a string in local time.
This is equivalent to asctime(localtime(seconds)). When the time tuple is
not present, current time as returned by localtime() is used.
exit(...)
exit([status])
Exit the interpreter by raising SystemExit(status).
If the status is omitted or None, it defaults to zero (i.e., success).
If the status is numeric, it will be used as the system exit status.
If it is another kind of object, it will be printed and the system
exit status will be one (i.e., failure).
Create a socket object from a duplicate of the given
file descriptor.
The remaining arguments are the same as for socket().
getuid(...)
getuid() -> uid
Return the current process's user id.
mpdsigjob()
sig_handler(signum, frame)
signal(...)
signal(sig, action) -> action
Set the action for the given signal.
The action can be SIG_DFL,
SIG_IGN, or a callable Python object.
The previous action is
returned.
See getsignal() for possible return values.
*** IMPORTANT NOTICE ***
A signal handler function is called with two arguments:
the first is the signal number, the second is the interrupted stack frame.