diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-03-06 19:03:34 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-03-06 19:03:34 +0100 |
commit | fb08eea3737907bbbc11c0a14427efe116fae92e (patch) | |
tree | 26e4767534fd93183fd9ae088145b2806b001bda /src/uvt_client.c | |
parent | 066d9fdb78691939960044b2c4047a8975347af2 (diff) |
uvtd: vt: implement VT_GETMODE/SETMODE ioctl state-tracking
These ioctls are used to retrieve and set the VT-mode. That is, the
signals and PID information that correspond to the VT controlling process.
It is notified whenever the VT gets active/inactive so it can react to it
or prevent/acknowledge it.
This doesn't implement the signal-sending logic, yet. It only implements
state-tracking.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'src/uvt_client.c')
-rw-r--r-- | src/uvt_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uvt_client.c b/src/uvt_client.c index d31a35b..574001e 100644 --- a/src/uvt_client.c +++ b/src/uvt_client.c @@ -972,7 +972,8 @@ void uvt_client_ll_ioctl(fuse_req_t req, int cmd, void *arg, fuse_reply_err(req, EOPNOTSUPP); } else { ret = client->vt->ioctl_VT_SETMODE(client->vt_data, - (const struct vt_mode*)in_buf); + (const struct vt_mode*)in_buf, + fuse_req_ctx(req)->pid); if (ret) fuse_reply_err(req, abs(ret)); else |