Make process titles give more information
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@408 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
7fad594685
commit
b13a65584a
|
@ -480,7 +480,15 @@ inprogressmenu (int gameid)
|
||||||
games[menuchoice - 97 + offset]->ws_col);
|
games[menuchoice - 97 + offset]->ws_col);
|
||||||
fflush (stdout);
|
fflush (stdout);
|
||||||
}
|
}
|
||||||
|
if (loggedin)
|
||||||
|
setproctitle("%s [watching %s]", me->username, chosen_name);
|
||||||
|
else
|
||||||
|
setproctitle("<Anonymous> [watching %s]", chosen_name);
|
||||||
ttyplay_main (ttyrecname, 1);
|
ttyplay_main (ttyrecname, 1);
|
||||||
|
if (loggedin)
|
||||||
|
setproctitle("%s", me->username);
|
||||||
|
else
|
||||||
|
setproctitle("<Anonymous>");
|
||||||
initcurses ();
|
initcurses ();
|
||||||
if (doresizewin)
|
if (doresizewin)
|
||||||
sigprocmask (SIG_SETMASK, &oldmask, NULL);
|
sigprocmask (SIG_SETMASK, &oldmask, NULL);
|
||||||
|
@ -959,7 +967,10 @@ loginprompt (int from_ttyplay)
|
||||||
if (passwordgood (pw_buf))
|
if (passwordgood (pw_buf))
|
||||||
{
|
{
|
||||||
loggedin = 1;
|
loggedin = 1;
|
||||||
setproctitle ("%s", me->username);
|
if (from_ttyplay)
|
||||||
|
setproctitle("%s [watching %s]", me->username, chosen_name);
|
||||||
|
else
|
||||||
|
setproctitle("%s", me->username);
|
||||||
dgl_exec_cmdqueue(globalconfig.cmdqueue[DGLTIME_LOGIN], 0, me);
|
dgl_exec_cmdqueue(globalconfig.cmdqueue[DGLTIME_LOGIN], 0, me);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1952,7 +1963,7 @@ main (int argc, char** argv)
|
||||||
size_t len = strlen(argv[optind]);
|
size_t len = strlen(argv[optind]);
|
||||||
memset(argv[optind++], 0, len);
|
memset(argv[optind++], 0, len);
|
||||||
}
|
}
|
||||||
setproctitle ("(not logged in)");
|
setproctitle("<Anonymous>");
|
||||||
|
|
||||||
create_config();
|
create_config();
|
||||||
|
|
||||||
|
@ -2070,7 +2081,7 @@ main (int argc, char** argv)
|
||||||
write_canned_rcfile (userchoice, dgl_format_str(userchoice, me, myconfig[userchoice]->rc_fmt));
|
write_canned_rcfile (userchoice, dgl_format_str(userchoice, me, myconfig[userchoice]->rc_fmt));
|
||||||
}
|
}
|
||||||
|
|
||||||
setproctitle ("%s [playing]", me->username);
|
setproctitle("%s [playing %s]", me->username, myconfig[userchoice]->shortname);
|
||||||
|
|
||||||
endwin ();
|
endwin ();
|
||||||
signal(SIGWINCH, SIG_DFL);
|
signal(SIGWINCH, SIG_DFL);
|
||||||
|
|
Loading…
Reference in New Issue