summaryrefslogtreecommitdiff
path: root/utils/gdmopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/gdmopen.c')
-rw-r--r--utils/gdmopen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/gdmopen.c b/utils/gdmopen.c
index d5c8574d..65a2b70c 100644
--- a/utils/gdmopen.c
+++ b/utils/gdmopen.c
@@ -130,6 +130,10 @@ main (int argc, char *argv[])
child_pid = fork();
if (child_pid == 0) {
+ char VT_NUMBER[256];
+
+ snprintf (VT_NUMBER, sizeof (VT_NUMBER), "VT_NUMBER=%d", vtno);
+ putenv (VT_NUMBER);
signal (SIGTERM, SIG_DFL);
signal (SIGINT, SIG_DFL);