diff options
author | rsc <devnull@localhost> | 2005-07-27 20:38:08 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-07-27 20:38:08 +0000 |
commit | abe4cd41cb74dea0207c471cf69d8f38ff73e4f4 (patch) | |
tree | fddec50f6f8df0350a1fe9dd63516dfdcb0d01ae /src/libdraw | |
parent | 9689b580bdb168b87a20a5e466864337d591acfa (diff) | |
download | plan9port-abe4cd41cb74dea0207c471cf69d8f38ff73e4f4.tar.gz plan9port-abe4cd41cb74dea0207c471cf69d8f38ff73e4f4.tar.bz2 plan9port-abe4cd41cb74dea0207c471cf69d8f38ff73e4f4.zip |
less graceful shutdown but avoid deadlocks
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/init.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libdraw/init.c b/src/libdraw/init.c index 125243cc..2fe18d21 100644 --- a/src/libdraw/init.c +++ b/src/libdraw/init.c @@ -12,6 +12,7 @@ Screen *_screen; int debuglockdisplay = 1; +/* static void drawshutdown(void) { @@ -23,6 +24,7 @@ drawshutdown(void) closedisplay(d); } } +*/ int initdraw(void (*error)(Display*, char*), char *fontname, char *label) @@ -89,7 +91,13 @@ initdraw(void (*error)(Display*, char*), char *fontname, char *label) draw(screen, screen->r, display->white, nil, ZP); flushimage(display, 1); - atexit(drawshutdown); + /* + * I don't see any reason to go away gracefully, + * and if some other proc exits holding the display + * lock, this atexit call never finishes. + * + * atexit(drawshutdown); + */ return 1; } |