Add the pid to the status output

This will be needed if we daemonise flexnbd.
This commit is contained in:
Alex Young
2012-07-16 11:50:59 +01:00
parent 8814894874
commit 2e20e7197a
3 changed files with 49 additions and 3 deletions

View File

@@ -17,6 +17,9 @@
*
* The following status fields are defined:
*
* pid:
* The current process ID.
*
* has_control:
* This will be false when the server is listening for an incoming
* migration. It will switch to true when the end-of-migration
@@ -36,7 +39,11 @@
#include "serve.h"
#include <sys/types.h>
#include <unistd.h>
struct status {
pid_t pid;
int has_control;
int is_mirroring;
};