fix: harden small core containers
This commit is contained in:
18
main.c
18
main.c
@@ -67,12 +67,18 @@ threadmain(int argc, char **argv)
|
||||
dictresc = chancreate(sizeof(Dictres), 0);
|
||||
mapinit(argv[1]);
|
||||
dictinit(argv[1]);
|
||||
proccreate(drawthread, nil, 16384);
|
||||
proccreate(srvthread, nil, 16384);
|
||||
proccreate(ibusthread, nil, 32768);
|
||||
proccreate(waylandthread, nil, 32768);
|
||||
threadcreate(dictthread, nil, 16384);
|
||||
threadcreate(imthread, nil, 16384);
|
||||
if(proccreate(drawthread, nil, 16384) < 0)
|
||||
die("can't create draw worker");
|
||||
if(proccreate(srvthread, nil, 16384) < 0)
|
||||
die("can't create server worker");
|
||||
if(proccreate(ibusthread, nil, 32768) < 0)
|
||||
die("can't create IBus worker");
|
||||
if(proccreate(waylandthread, nil, 32768) < 0)
|
||||
die("can't create Wayland worker");
|
||||
if(threadcreate(dictthread, nil, 16384) < 0)
|
||||
die("can't create dictionary worker");
|
||||
if(threadcreate(imthread, nil, 16384) < 0)
|
||||
die("can't create input worker");
|
||||
|
||||
threadexits(nil);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user