qrexec: hide timing debug messages in vm-file-editor
Those are currently barely useful, since starting the application isn't the biggest bottleneck of DispVM. And since stderr is now visible on qvm-open-in-dvm output, not scare the user with it.
This commit is contained in:
parent
b267e5c305
commit
7c45985331
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#define USER_HOME "/home/user"
|
#define USER_HOME "/home/user"
|
||||||
#define TMP_LOC "/tmp/qopen/"
|
#define TMP_LOC "/tmp/qopen/"
|
||||||
|
// #define DEBUG
|
||||||
|
|
||||||
static const char *cleanup_filename = NULL;
|
static const char *cleanup_filename = NULL;
|
||||||
|
|
||||||
@ -154,7 +155,9 @@ main()
|
|||||||
perror("stat pre");
|
perror("stat pre");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "time=%s, waiting for qubes-session\n", gettime());
|
fprintf(stderr, "time=%s, waiting for qubes-session\n", gettime());
|
||||||
|
#endif
|
||||||
// wait for X server to starts (especially in DispVM)
|
// wait for X server to starts (especially in DispVM)
|
||||||
if (stat("/tmp/qubes-session-env", &session_stat)) {
|
if (stat("/tmp/qubes-session-env", &session_stat)) {
|
||||||
switch (child = fork()) {
|
switch (child = fork()) {
|
||||||
@ -183,7 +186,9 @@ main()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "time=%s, starting editor\n", gettime());
|
fprintf(stderr, "time=%s, starting editor\n", gettime());
|
||||||
|
#endif
|
||||||
switch (child = fork()) {
|
switch (child = fork()) {
|
||||||
case -1:
|
case -1:
|
||||||
perror("fork");
|
perror("fork");
|
||||||
|
Loading…
Reference in New Issue
Block a user