daemon exports main_thread_id, sends SIGTERM to the main thread in daemon_kill
This commit is contained in:
@@ -303,6 +303,11 @@ struct daemon_t {
|
||||
*/
|
||||
gid_t gid;
|
||||
|
||||
/**
|
||||
* The thread_id of main-thread.
|
||||
*/
|
||||
pthread_t main_thread_id;
|
||||
|
||||
/**
|
||||
* Do not drop a given capability after initialization.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user