tcheck initdraw return - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 98df7c80d83005ec6e4403a13014451c5dbfae3e | |
parent be3e97dcf86cf20f19ee0adbef00acd3971118bc | |
Author: rsc | |
Date: Sun, 25 Jun 2006 23:50:32 +0000 check initdraw return Diffstat: M src/cmd/9term/9term.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- | |
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c | |
t@@ -90,7 +90,9 @@ threadmain(int argc, char *argv[]) startdir = "."; - initdraw(derror, fontname, "9term"); + if(initdraw(derror, fontname, "9term") < 0) + sysfatal("initdraw: %r"); + notify(hangupnote); noteenable("sys: child"); |