548
552
#endif /* HAVE_INITGROUPS */
554
#ifdef HAVE_PROJECT_H
560
char buf[PROJECT_BUFSZ];
564
* Collect the default project for the user and settaskid
567
if (getdefaultproj(pw->pw_name, &proj, buf, sizeof(buf)) != NULL) {
568
errval = setproject(proj.pj_name, pw->pw_name, TASK_NORMAL);
572
case SETPROJ_ERR_TASK:
575
warningx("resource control limit has been reached");
578
warningx("user \"%s\" is not a member of project \"%s\"",
579
pw->pw_name, proj.pj_name);
582
warningx("the invoking task is final");
585
warningx("could not join project \"%s\"", proj.pj_name);
587
case SETPROJ_ERR_POOL:
590
warningx("no resource pool accepting default bindings "
591
"exists for project \"%s\"", proj.pj_name);
594
warningx("specified resource pool does not exist for "
595
"project \"%s\"", proj.pj_name);
598
warningx("could not bind to default resource pool for "
599
"project \"%s\"", proj.pj_name);
604
warningx("setproject failed for project \"%s\"", proj.pj_name);
606
warningx("warning, resource control assignment failed for "
607
"project \"%s\"", proj.pj_name);
611
warning("getdefaultproj");
615
#endif /* HAVE_PROJECT_H */